Virtual Environments in Python - Crash Course

  Рет қаралды 97,697

NeuralNine

NeuralNine

Күн бұрын

Пікірлер: 72
@princemarkied8071
@princemarkied8071 10 ай бұрын
this was exactly what i needed. It made it so simple for some reason lol. Virtual Environments are a MUST for python and now I can navigate them with no confusion
@timrudenauer6449
@timrudenauer6449 8 ай бұрын
Very good explanation. All basics were straight an to the point. The virtual environment was weird for me as a fulltime javascript dev. Now I understand that its not really that different except of the changed environment variables and paths. :)
@aslynnmoore8601
@aslynnmoore8601 8 ай бұрын
Great video. Good explanation of why needed and how to create a requirements.txt file to identify the modules to load into the environment. The only thing missing is saying what to do with the requirements.txt file after you make it. While you could just read through it and manually pip install each of the modules in the file, you can also just install all of them in one command using pip install -r requirements.txt. That is really what I came here to find and you have everything except that. Thought I would add it here so the whole process is complete.
@lightningfastthunder5401
@lightningfastthunder5401 6 ай бұрын
This was sooooooooooo nice and detailed, thank you man, you saved me from several late night headaches 😅
@pcimring
@pcimring Жыл бұрын
Great intro - thanks! I played around on a Mac, and as far as I can tell, the following commands are used: To create a virtual environment: python3 -m venv OR (as per this video): virtualenv Then... to activate: source /bin/activate And to deactivate: deactivate -- That's what worked for me. Am I missing anything? :)
@chrisdepallanofficial460
@chrisdepallanofficial460 8 ай бұрын
its the same for linux/unix systems. i was searching for scripts in my system. then i just went " hahaha"
@jamesw8458
@jamesw8458 Жыл бұрын
This is crystal clear. Thanks!
@jjar7266
@jjar7266 7 ай бұрын
Thank You so much! I was having a bit of trouble with chapter 18 in Python Crash Course 3rd editiion on creating a virtual environment.. you made it very simple to understand!!
@oguzhantopaloglu9442
@oguzhantopaloglu9442 2 жыл бұрын
whats the difference between this and "python -m venv venv" stuff?
@juliankleinhans
@juliankleinhans 2 жыл бұрын
@@Serpent-DCLXV thx, and what should you recommend to use and why? Until now i am using python -m venv .venv, but after watching your awesome Video i am not sure if i should stay with that or if i should switch
@juliankleinhans
@juliankleinhans 2 жыл бұрын
@@Serpent-DCLXV awesome answer, thanks a lot
@albertoricardomorales6328
@albertoricardomorales6328 2 жыл бұрын
Thanks! This is just what I needed
@govinej
@govinej 2 жыл бұрын
Can you do a course about testing your code/classes/methods?
@nu940
@nu940 5 ай бұрын
concise, yet very helpful tutorial
@AMoktar
@AMoktar 10 ай бұрын
Awsome, Pretty straight forward. Thanks bro.
@Yash-Gaikwad
@Yash-Gaikwad 11 ай бұрын
Best tutorial for virtual environment. subscribed :)
@samsung40_media87
@samsung40_media87 2 жыл бұрын
clear on Windows - cls - or maybe CTRL+L works too?
@G3CK0S
@G3CK0S 6 ай бұрын
This was super helpful, thank you!
@felipefarah9720
@felipefarah9720 Жыл бұрын
Crazy good explanation! Great stuff
@michaelomosebi6374
@michaelomosebi6374 Жыл бұрын
Exactly what I needed! 👍
@MarcelMaier-zz4xo
@MarcelMaier-zz4xo 5 ай бұрын
i was kinda shocked, that this even is a problem in python. as a beginner i just asumed that i works like node :D
@lundebc
@lundebc Жыл бұрын
So, I think I am missing something key. On my raspberry pi, runing bookworm, If I create the venv, install a library, then go to my visual studio environment, how do I make sure that the python "sees" the library in the venv ?
@songxujin5581
@songxujin5581 11 ай бұрын
讲的醍醐灌顶!大兄弟谢谢你
@ZsoltPal23092011
@ZsoltPal23092011 Жыл бұрын
excellent thanks! clear easy to understand explanation, helped a lot!
@programadordelassombras
@programadordelassombras Жыл бұрын
New to python applications here. From my understanding, virtualenv is a third party package. venv (formally pyenv) comes installed with python3. With this said, is it still, then, necessary to use virtualenv? I'm mad confused... then there's pipenv... **confusion overload**
@Grogueman
@Grogueman Жыл бұрын
If you need to use different versions of pyhton for various projects, virtualenv is the way to go. venv only creates environments with its home release of Python.
@A.Tantawy
@A.Tantawy Жыл бұрын
Thanks a lot man, You're doing an amazing job!!!
@Good-and-Geeky
@Good-and-Geeky Жыл бұрын
Super explanation. Very useful !
@Bern-One
@Bern-One 9 ай бұрын
Great lesson.
@tejashwini54321
@tejashwini54321 Жыл бұрын
Thank you so much sir for such a clear explanation....✨😊✨✨✨✨
@plopi3109
@plopi3109 Жыл бұрын
I use venv because i don't have root permissions and I struggle use venv with IntelliJ IDEA, the packages i download with pip in the venv are not showing on my IDE, but your video helped me understanding those concept, i'm not at all into progamming
@bassycounter
@bassycounter Жыл бұрын
Hmm I’ve had similar problems with packages not showing, maybe i’ll try virtualenv
@sentient1640
@sentient1640 7 ай бұрын
I didn't add python to path. So, when I deactivate and run pip list command, i still see the packages installed in virtual environment but not outside the folder.
@hakonmoen3438
@hakonmoen3438 Жыл бұрын
great, another super technical "introduction". How about a high level illustration of what the topic is about, and keep it dumbed down for a set amount of time before introducing abbreviations after abbreviations
@ThePelcher
@ThePelcher Жыл бұрын
Great video!
@elysonpanolino5413
@elysonpanolino5413 Жыл бұрын
after creating and activating virtual environment, how to proceed in actual coding that uses this venv
@RonSheely
@RonSheely 4 ай бұрын
Thank you.
@vangelis_
@vangelis_ Жыл бұрын
useful video, well explained :)
@krzysiekkrzysiek9059
@krzysiekkrzysiek9059 Жыл бұрын
@NeuralNine is the Virtualenv better than the Venv?
@Nabilh17
@Nabilh17 Жыл бұрын
very clear, thank you
@zigaudrey
@zigaudrey Жыл бұрын
I am so used to see that "PIL/Pillow doesn't need a Virtual Environment" that I need one to make it work. All I end up to says is "God. Fucking. Dammit". Thank for the video.
@horstmueller1000
@horstmueller1000 Жыл бұрын
is virtualenv recommended or deprecated? (min 5:00)
@programadordelassombras
@programadordelassombras Жыл бұрын
Does anyone have any resources on how to move an existing Django project into a venv? I started a Django project without first creating a venv.
@carlosduclaud9562
@carlosduclaud9562 4 ай бұрын
you just left the linux explanation halfway... thank you
@junjuljunjul4392
@junjuljunjul4392 Жыл бұрын
Thank you good sir!
@YuTv1408
@YuTv1408 Жыл бұрын
Cool and more useful than reading RedHat...lolz
@DennisMissel-sw1uh
@DennisMissel-sw1uh 2 жыл бұрын
Awesome content .. thank you
@erfanfekri7156
@erfanfekri7156 Жыл бұрын
Thanks a lot !
@infocus5410
@infocus5410 Жыл бұрын
for some reason, I can't deactivate virtualenv, command .\Scripts\deactivate. bat doesn't do anything...?
@Fidolorous
@Fidolorous 3 ай бұрын
just type deactivate if you're using powershell
@MK3DScapes
@MK3DScapes 9 ай бұрын
The "ls" command will not work in CMD for me. Does anyone know why?
@NeuralNine
@NeuralNine 9 ай бұрын
It's a Linux command. On cmd you need to use "dir". I added a custom alias in Windows.
@tamirnitzan7836
@tamirnitzan7836 8 ай бұрын
Why keep on showing old technology. Can do all with pipenv match more simple.
@sadeqmousawi140
@sadeqmousawi140 Жыл бұрын
Thanks a lot
@Tony-dp1rl
@Tony-dp1rl 9 ай бұрын
Using Docker as I do now, is a lot more simple than this, and you have the bonus of being ready to deploy just about anywhere. Not seeing any advantage here.
@brianwaweru7754
@brianwaweru7754 11 ай бұрын
thanks
@loganki5zyw
@loganki5zyw Жыл бұрын
I was wondering why the fuck do i want to go to this trouble but ig it makes sense
@bassycounter
@bassycounter Жыл бұрын
😂me too, i spent so much time thinking this stuff was way too unnecessary, but now that I’m working on projects that require external packages, I guess I ought to learn up on this and get comfortable with it
@jms9993
@jms9993 9 ай бұрын
ugh windows and the cli makes me so sad :(
@NeuralNine
@NeuralNine 9 ай бұрын
I have a newer video recorded on Linux.
@laalbujhakkar
@laalbujhakkar 2 жыл бұрын
Do you know why people skip the videos back and forth? because we're dealing with a hundred plus videos for our search query and every single one claims to epxlain python virtual envs. For eache *#$()*#$ video, we have to sit through 2 unskippagle godda***d ads for 20 seconds. You see where this is going?
@guilherme5094
@guilherme5094 2 жыл бұрын
👍
@WyattLes-g1q
@WyattLes-g1q Ай бұрын
Zemlak Summit
@TppJay
@TppJay 2 жыл бұрын
3rd comment
@philtoa334
@philtoa334 2 жыл бұрын
Thx._
@WaqasKhan-pn9fj
@WaqasKhan-pn9fj 2 жыл бұрын
1st viewer 🤣🤣
How to Create and Use Virtual Environments in Python With Poetry
14:43
The Complete Guide to Python Virtual Environments!
15:52
teclado
Рет қаралды 366 М.
ТЮРЕМЩИК В БОКСЕ! #shorts
00:58
HARD_MMA
Рет қаралды 2,6 МЛН
virtualenv vs. venv (beginner - intermediate) anthony explains #040
11:22
anthonywritescode
Рет қаралды 44 М.
ChatGPT Explained Completely.
27:39
Kyle Hill
Рет қаралды 1,2 МЛН
Python Virtual Environment and pip for Beginners
30:39
Dave Gray
Рет қаралды 33 М.
What's New in Python 3.13?
19:02
NeuralNine
Рет қаралды 10 М.
What is a Virtual Environment in Python?
8:53
Sam Westby Tech
Рет қаралды 7 М.
When Optimisations Work, But for the Wrong Reasons
22:19
SimonDev
Рет қаралды 1 МЛН
What is the Python Interpreter? (How does Python Work?)
14:08
Afternerd
Рет қаралды 85 М.
ТЮРЕМЩИК В БОКСЕ! #shorts
00:58
HARD_MMA
Рет қаралды 2,6 МЛН