For details about how to configure virtualenvwrapper of python3 in linux,
Python version management & virtualenv Management
Virtualenvwrapper is an extension package used to manage virtualenv, which is easy to use.
Note that in python3, pip installation: sudo apt install python3-pip
Python2: sudo apt install python2-pip
1. virtualenvwrapper installation:
# Install virtualenv (sudo) pip install virtualenv # install virtualenvwrapper (sudo) pip install virtualenvwrapper
2. Configuration:
Modify ~ /. Bash_profile or other environment variable-related files (for example,. bashrc (under my Ubuntu15.10) or. zshrc after ZSH), add the following statement:
export WORKON_HOME=$HOME/.virtualenvsexport PROJECT_HOME=$HOME/workspacesource /usr/local/bin/virtualenvwrapper.sh
Then run:
source ~/.bash_profile
3. Usage:
Mkvirtualenv zqxt: Create the runtime environment zqxt
Workon zqxt: Work in the zqxt environment or switch from another environment to the zqxt Environment
Deactivate: Exit the terminal environment
Others:
RmvirtualenvENV: Delete the running environment ENV
MkprojectMic: Create a mic project and a running environment mic
Mktmpenv: Create a temporary running environment
Lsvirtualenv: List available runtime Environments
Lssitepackages: List packages installed in the current environment
Note: It can also be used directly.PyenvMulti-version python management with virtualenv.