python-guide icon indicating copy to clipboard operation
python-guide copied to clipboard

Python 3.3 venv

Open heydonovan opened this issue 10 years ago • 3 comments

I'm still learning Python, so I could be way off here. It's from my understanding that virtualenv was a standalone package, and now Python 3 has it built-in? I didn't see that in the guide, but people online seem to repeat this information. For example: http://askubuntu.com/a/353903

This would be in reference to this page: http://docs.python-guide.org/en/latest/dev/virtualenvs/

heydonovan avatar Mar 29 '15 19:03 heydonovan

+1 https://docs.python.org/3.3/using/scripts.html#pyvenv-creating-virtual-environments

afq984 avatar May 31 '15 11:05 afq984

From Python 3.6 docs:

Note

The pyvenv script has been deprecated as of Python 3.6 in favor of using python3 -m venv to help prevent any potential confusion as to which Python interpreter a virtual environment will be based on. 28.3.1. Creating virtual environments

Creation of virtual environments is done by executing the command venv:

$ python3 -m venv /path/to/new/virtual/environment $ source /path/to/new/virtual/environment/bin/activate

cclauss avatar Mar 11 '17 11:03 cclauss

#1034 should cover this issue.

jhermann avatar Feb 07 '20 12:02 jhermann