

In this video, we will be looking at virtualenv and why you should be using virtual environments in Python. Virtual Environments in Python allow us to keep project-specific dependencies in a separate place than our global site-packages. This is extremely useful when you have different versions of packages for different projects.
✅ Support My Channel Through Patreon:
✅ Become a Channel Member:
✅ One-Time Contribution Through PayPal:
✅ Cryptocurrency Donations:
Bitcoin Wallet – 3MPH8oY2EAgbLVy7RBMinwcBntggi7qeG3
Ethereum Wallet – 0x151649418616068fB46C3598083817101d3bCD33
Litecoin Wallet – MPvEBY5fxGkmPQgocfJbxP6EmTo5UUXMot
✅ Corey’s Public Amazon Wishlist
✅ Equipment I Use and Books I Recommend:
▶️ You Can Find Me On:
My Website –
My Second Channel –
Facebook –
Twitter –
Instagram –
#Python
source
your videos are so clear! awesome work
after executing "virtualenv picar", a "bash:virtualenv command not found" error is coming. How do I fix it?
Thank you for your great tutorial!
source project1_env/bin/activate is not working on windows 10. Any help?
Thanks for simple and effective explaination
How do I use a virtualenv in eclipse?
brilliant
u saved my day!!!!
For my windows system, I'm getting this error. Kindly help me out.
C:UsersamlanEnvironments>project_env/Scripts/activate
'project_env' is not recognized as an internal or external command,
operable program or batch file.
PS: (I've also tried project_env/Scripts/
activate.bat)
How come when I create a new virtualenv I get this response `New python executable in /Users/ashley/projects/virtual_environments/pelican/bin/python2.7` I do have 3.7.4 installed, confirmed by running `python -V`. But now inside the virtualenv I get 2.7.15
I had to run `virtualenv -p python3 pelican` to get the appropriate version in the vm
Hi Corey..Thanks for the video
I wonder if we can create 2 version of python 3 like 3.5 and 3.7 in virtual environment
Hi! I followed along with the video, everything works fine. I am using python3 with version 3.7 on a mac with the newest version. when I "cat requirementstxt", the output is empty. But if i just pip list inside the virtual environment, it does list setuptools, pip, wheel. Can anyone help me with this one?
Schafer i must say, when it comes to python your channel is the best. The way you present is great. I thank you very much for producing python learning videos.
how do you compile with virtualenv python3. I think i know how, nevermind
The commands are not working well on Windows
The commands are not working well on Windows
groovy video, it really helped demystify VE for me.
Hello Corey,
I am following ur videos and understanding nicel. Can you please help me how to transfer the CSV file from local windows machine to Unix server which is accessible through pulse or Citrix
Can I move my environment on another computer?
when I tried to install it on my home directory I get a "'pip' is not recognized as an internal or external command,
operable program or batch file." what should I do?
Hi Corey and others..
When running 'virtualenv env' I'm getting the following permission error.
Installing collected packages: setuptools, pip, wheel
ERROR: Could not install packages due to an EnvironmentError.
Consider using the `–user` option or check the permissions.
..
PermissionError: [Errno 13] Permission denied: '/lib'
This on the other hand works well:
python3 -m venv env
source env/bin/activate
Also when installing pip3 modules I have to use –user to avoid getting permission errors: 'pip3 install virtualenv –user'
I found this stack overflow page to be very good in understanding the many different virtual env tools/modules: https://stackoverflow.com/questions/41573587/what-is-the-difference-between-venv-pyvenv-pyenv-virtualenv-virtualenvwrappe
Edit: This seems to be the 2019 approach https://coreyms.com/development/python/python-tutorial-venv-mac-linux-how-to-use-virtual-environments-with-the-built-in-venv-module – As Corey mentions in the video (from April 2019 he's using the now built in 'venv' instead of 'virtualenv'
good video. thanks
Judging by your amazon wish list, I think we would get along tremendously!
ls = dir on windows
Quick question. If I want to create a deployment package of an application developed in a virtual environment…The only option is to copy the project folders to the site-packages and then export yes?
Please make videos on django-environ
How do I deploy a script with external modules into a server? I'm struggling on this part.
Very important video – thanks!
what is cd !$ do?
My friend thanks for share this! Blessings!
So I've made a new virtualenv, what should I do to access it from editor or IDE?
02:21 how do I do that on windows