When I participated in Python Mokumokukai @ Allied Architects (Ebisu), a kind person told me "I want to use pyenv", so make a note.
At that time, I didn't know the difference between pyenv, pyvenv, and virtualenv Because it was a statement in the state, that kind person is also a beginner. I don't know if you're saying the right thing, but after prefaced, say "If you have only one purpose, you don't need virtualenv" and "You probably want to do virtualenv" and teach the following method. Gave me.
After listening to the story and actually working on it, I realized that my remarks were quite mysterious, and today (2015/04/11) I realized that it was pyvenv who taught me more.
For example
C:\> cd C:\Users\username\Documents
C:\Users\username\Documents> Python C:\Python34\Tools\Scripts\pyvenv.py venvtest
(Added on 2015/04/13) Mr. shimizukawa commented that pyvenv is made to be executable as a python module, so you can get the same result with the following command.
C:\Users\username\Documents> python -m venv venvtest
C:\Users\username\Documents\venvtest\Scripts\activate
(After activate)
(venvtest)C:\Users\username\Documents>
(Mr. Thanks to furico revised on May 10, 2015)
(venvtest)C:\Users\username\Documents> deactivate
(After deactivate)
C:\Users\username\Documents>
https://docs.python.org/3/library/venv.html#module-venv http://docs.python.jp/3.3/library/venv.html
Special Thanks Python Mokumokukai @ Allied Architects (Ebisu) python mini-hack-a-thon
Recommended Posts