Bonus info: from Python 3.9 it'll be nice to supplement the virtual environment creation with the optional argument `--upgrade-deps` as it'll update pip setuptools to the latest version in PyPI. It would be: `python3 -m venv .venv --upgrade-deps`
Thank you for your precise and informative contents. Just please try to zoom in a bit your terminal next time so the commands can be more clear. Thank you again.
Do you commit the Virtual environment folder to Github? that sounds weird. Could you explain how you deal with that please? Do you have to remember to put it in the gitignore? isnt there a better way?
Windows 10 (Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy Unrestricted) then I ran Scripts/activate from a test folder on the Windows Desktop test folder I manually created. I ran this in an instance of Administrator: Windows Powershell. Then, Golden.
Very informative video, but still have a question? If you want to work with a previously created virtual environment in a new project, how to make that if you're using a text editor
I am sorry, but I am almost in a rage now... This is the fourth video I watched now while the last hour and all were completely useless. Why do you all wanna was our time? - And now? Now I have kind of second /usr/lib/python/dist-packages dir. - And how should my project1.py program file in my Project1 project directory use it? If I start my program like ./project1.py my OS python installation with it's libraries is still used. Not one word about how to use the new .venv. I just wasted one hour of watching your's and your colleague's videos not mentioning how to use and not administer a venv. One thumb down.
If you're on Windows and having trouble activating your virtual environment. The user account you're using may be restricted from running scripts on the desktop. Here's the code that solved it for me: Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy Unrestricted From there, you can pick up with "Scripts\activate" command next.
I guess you've already found the solution, but it could be useful to other people : .venv\Script\activate.bat This is the way to activate virtual environment on Windows CMD
Guys, help me pls: (.venv) (.venv) barny-1111-11111% deactivate (.venv) barny-1111-11111% deactivate (.venv) barny-1111-11111% deactivate zsh: command not found: deactivate What is the problem? Why do i see that second vevn when im not under the venv? How can i remove it?
Virtual environments are just starting to become clear to me. Thanks for helping solidify it even more
This was a very helpful and clear video. I don't know why venv was so complicated to me previously.
Glad it helped!
I learn so much from each and every video you put out. Thank you for such great content!!!
I was having problems with some dependencies, thank you very much for the super clear and concise video !
As a junior engineer, I have always thought virtual environments were unnecessary noise, I just recently realised how important they are.
Very well explained, thanks!
really help full thanks
Love your channel bro!
Your channel is a wealth of extremely useful and clearly presented information. Thank you very much.
Bonus info: from Python 3.9 it'll be nice to supplement the virtual environment creation with the optional argument `--upgrade-deps` as it'll update pip setuptools to the latest version in PyPI.
It would be: `python3 -m venv .venv --upgrade-deps`
Thank you for your precise and informative contents. Just please try to zoom in a bit your terminal next time so the commands can be more clear. Thank you again.
Great tutorial! Thanks!
Very useful video, thank you very much!
Excellent. Thanks!
You have also a video about poetry... What would you use? Poetry or venv? Thanks.
great tutorial. Thanks
Great explanation on how to create a virtual environment. I am wondering where the advantages or disadvantages are of using conda
Great helpful video!
Very informative! How is Pop OS btw?
N00b question, but would I clone the project to the .venv folder or the 'Project1' folder than .venv is in?
Awesome thanks. Btw is docker is the way to go? Can you pls show us ? Thanks heaps 😊
Do you commit the Virtual environment folder to Github? that sounds weird.
Could you explain how you deal with that please? Do you have to remember to put it in the gitignore?
isnt there a better way?
Windows 10 (Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy Unrestricted) then I ran Scripts/activate from a test folder on the Windows Desktop test folder I manually created. I ran this in an instance of Administrator: Windows Powershell. Then, Golden.
Great content as usual! Do you mind sharing the wallpaper, pls?
It's a default Pop!_OS wallpaper
Very informative video, but still have a question? If you want to work with a previously created virtual environment in a new project, how to make that if you're using a text editor
In your new project folder python3 -m venv .venv and activate it , then install the requirements.txt from your previous project as shown in the video
@@ddjazz yeah that's it, thank u sm
venv for binaries / packages and env for env constants / keys etc
Thanks. Could you please explain a little more on how to set virtual python environment in Rstudio?
great video!
Please zoom your work not to see
I am sorry, but I am almost in a rage now...
This is the fourth video I watched now while the last hour and all were completely useless.
Why do you all wanna was our time? - And now?
Now I have kind of second /usr/lib/python/dist-packages dir. - And how should my project1.py program file in my Project1 project directory use it?
If I start my program like ./project1.py my OS python installation with it's libraries is still used.
Not one word about how to use the new .venv.
I just wasted one hour of watching your's and your colleague's videos not mentioning how to use and not administer a venv.
One thumb down.
"source .venv/bin/activate" Doesn't work on Windows. Any suggestions?
If you're on Windows and having trouble activating your virtual environment. The user account you're using may be restricted from running scripts on the desktop.
Here's the code that solved it for me:
Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy Unrestricted
From there, you can pick up with "Scripts\activate" command next.
I guess you've already found the solution, but it could be useful to other people :
.venv\Script\activate.bat
This is the way to activate virtual environment on Windows CMD
"11"! - america is showing what it is!
Guys, help me pls:
(.venv) (.venv) barny-1111-11111% deactivate
(.venv) barny-1111-11111% deactivate
(.venv) barny-1111-11111% deactivate
zsh: command not found: deactivate
What is the problem? Why do i see that second vevn when im not under the venv? How can i remove it?