Virtual Environments in Python - Crash Course
HTML-код
- Опубликовано: 21 июн 2022
- In this video we learn how to create and use virtual environments in Python.
◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾
📚 Programming Books & Merch 📚
🐍 The Python Bible Book: www.neuralnine.com/books/
💻 The Algorithm Bible Book: www.neuralnine.com/books/
👕 Programming Merch: www.neuralnine.com/shop
🌐 Social Media & Contact 🌐
📱 Website: www.neuralnine.com/
📷 Instagram: / neuralnine
🐦 Twitter: / neuralnine
🤵 LinkedIn: / neuralnine
📁 GitHub: github.com/NeuralNine
🎙 Discord: / discord
🎵 Outro Music From: www.bensound.com/ Наука
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
Thanks!
This is just what I needed
This is crystal clear. Thanks!
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. :)
excellent thanks! clear easy to understand explanation, helped a lot!
Crazy good explanation! Great stuff
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!!
Thanks a lot man, You're doing an amazing job!!!
Awsome, Pretty straight forward. Thanks bro.
This was sooooooooooo nice and detailed, thank you man, you saved me from several late night headaches 😅
concise, yet very helpful tutorial
Can you do a course about testing your code/classes/methods?
This was super helpful, thank you!
Exactly what I needed! 👍
Super explanation. Very useful !
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.
Thank you so much sir for such a clear explanation....✨😊✨✨✨✨
Best tutorial for virtual environment. subscribed :)
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? :)
its the same for linux/unix systems. i was searching for scripts in my system. then i just went " hahaha"
very clear, thank you
whats the difference between this and "python -m venv venv" stuff?
@@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
@@Serpent-DCLXV awesome answer, thanks a lot
Awesome content .. thank you
clear on Windows - cls - or maybe CTRL+L works too?
讲的醍醐灌顶!大兄弟谢谢你
useful video, well explained :)
Great lesson.
Thank you good sir!
Great video!
i was kinda shocked, that this even is a problem in python. as a beginner i just asumed that i works like node :D
Thanks a lot !
@NeuralNine is the Virtualenv better than the Venv?
Thanks a lot
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 ?
after creating and activating virtual environment, how to proceed in actual coding that uses this venv
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.
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
Hmm I’ve had similar problems with packages not showing, maybe i’ll try virtualenv
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.
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**
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.
thanks
for some reason, I can't deactivate virtualenv, command .\Scripts\deactivate. bat doesn't do anything...?
is virtualenv recommended or deprecated? (min 5:00)
Cool and more useful than reading RedHat...lolz
👍
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.
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
The "ls" command will not work in CMD for me. Does anyone know why?
It's a Linux command. On cmd you need to use "dir". I added a custom alias in Windows.
I was wondering why the fuck do i want to go to this trouble but ig it makes sense
😂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
Why keep on showing old technology. Can do all with pipenv match more simple.
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.
ugh windows and the cli makes me so sad :(
I have a newer video recorded on Linux.
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?
Thx._
1st viewer 🤣🤣
3rd comment
didnt work/talks too fast
You can go to the settings and set the speed to .75