Describes frequently used commands in virtualenv
Create a virtual environment by specifying the version of python. ~ / hoge specifies the directory for creating the virtual environment
$ virtualenv hoge_env --python=/usr/bin/python2.6 ~/hoge
Make the virtual environment active
$ source ~/hoge/bin/activate
Make the virtual environment deactive
$ deactivate
that's all
Recommended Posts