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
@timrudenauer64498 ай бұрын
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. :)
@aslynnmoore86018 ай бұрын
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.
@lightningfastthunder54016 ай бұрын
This was sooooooooooo nice and detailed, thank you man, you saved me from several late night headaches 😅
@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? :)
@chrisdepallanofficial4608 ай бұрын
its the same for linux/unix systems. i was searching for scripts in my system. then i just went " hahaha"
@jamesw8458 Жыл бұрын
This is crystal clear. Thanks!
@jjar72667 ай бұрын
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!!
@oguzhantopaloglu94422 жыл бұрын
whats the difference between this and "python -m venv venv" stuff?
@juliankleinhans2 жыл бұрын
@@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
@juliankleinhans2 жыл бұрын
@@Serpent-DCLXV awesome answer, thanks a lot
@albertoricardomorales63282 жыл бұрын
Thanks! This is just what I needed
@govinej2 жыл бұрын
Can you do a course about testing your code/classes/methods?
@nu9405 ай бұрын
concise, yet very helpful tutorial
@AMoktar10 ай бұрын
Awsome, Pretty straight forward. Thanks bro.
@Yash-Gaikwad11 ай бұрын
Best tutorial for virtual environment. subscribed :)
@samsung40_media872 жыл бұрын
clear on Windows - cls - or maybe CTRL+L works too?
@G3CK0S6 ай бұрын
This was super helpful, thank you!
@felipefarah9720 Жыл бұрын
Crazy good explanation! Great stuff
@michaelomosebi6374 Жыл бұрын
Exactly what I needed! 👍
@MarcelMaier-zz4xo5 ай бұрын
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 Жыл бұрын
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 ?
@songxujin558111 ай бұрын
讲的醍醐灌顶!大兄弟谢谢你
@ZsoltPal23092011 Жыл бұрын
excellent thanks! clear easy to understand explanation, helped a lot!
@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 Жыл бұрын
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 Жыл бұрын
Thanks a lot man, You're doing an amazing job!!!
@Good-and-Geeky Жыл бұрын
Super explanation. Very useful !
@Bern-One9 ай бұрын
Great lesson.
@tejashwini54321 Жыл бұрын
Thank you so much sir for such a clear explanation....✨😊✨✨✨✨
@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 Жыл бұрын
Hmm I’ve had similar problems with packages not showing, maybe i’ll try virtualenv
@sentient16407 ай бұрын
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 Жыл бұрын
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 Жыл бұрын
Great video!
@elysonpanolino5413 Жыл бұрын
after creating and activating virtual environment, how to proceed in actual coding that uses this venv
@RonSheely4 ай бұрын
Thank you.
@vangelis_ Жыл бұрын
useful video, well explained :)
@krzysiekkrzysiek9059 Жыл бұрын
@NeuralNine is the Virtualenv better than the Venv?
@Nabilh17 Жыл бұрын
very clear, thank you
@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 Жыл бұрын
is virtualenv recommended or deprecated? (min 5:00)
@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.
@carlosduclaud95624 ай бұрын
you just left the linux explanation halfway... thank you
@junjuljunjul4392 Жыл бұрын
Thank you good sir!
@YuTv1408 Жыл бұрын
Cool and more useful than reading RedHat...lolz
@DennisMissel-sw1uh2 жыл бұрын
Awesome content .. thank you
@erfanfekri7156 Жыл бұрын
Thanks a lot !
@infocus5410 Жыл бұрын
for some reason, I can't deactivate virtualenv, command .\Scripts\deactivate. bat doesn't do anything...?
@Fidolorous3 ай бұрын
just type deactivate if you're using powershell
@MK3DScapes9 ай бұрын
The "ls" command will not work in CMD for me. Does anyone know why?
@NeuralNine9 ай бұрын
It's a Linux command. On cmd you need to use "dir". I added a custom alias in Windows.
@tamirnitzan78368 ай бұрын
Why keep on showing old technology. Can do all with pipenv match more simple.
@sadeqmousawi140 Жыл бұрын
Thanks a lot
@Tony-dp1rl9 ай бұрын
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.
@brianwaweru775411 ай бұрын
thanks
@loganki5zyw Жыл бұрын
I was wondering why the fuck do i want to go to this trouble but ig it makes sense
@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
@jms99939 ай бұрын
ugh windows and the cli makes me so sad :(
@NeuralNine9 ай бұрын
I have a newer video recorded on Linux.
@laalbujhakkar2 жыл бұрын
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?