I will describe two methods.
# :Run as root.
$ :General user(Other than root)Run with.
Only virtualenv Build in the current directory.
$ virtualenv --python=/usr/local/bin/python project-env
With virtualenvwrapper Build under $ WORKON_HOME set in Python3.4 installation.
$ mkvirtualenv --python=/usr/local/bin/python project-env
Execute before using the virtual environment. Only virtualenv
$ cd /var/www/python
$ source ./project-env/bin/activate
With virtualenvwrapper
$ workon project-env
The virtual environment project-env under the home directory is activated.
Execute when exiting the virtual environment. Only virtualenv & With virtualenvwrapper
$ deactivate
Recommended Posts