1, install virtulenv, virtulenvwrapper package
pip install virtualenv virtualenvwrapper
2. virtualenvwrapper is an extension tool for virtualenv that makes it easy to create, delete, copy, and switch between different virtual environments.
3. Set environment variables, add the following two lines to ~/.bash_profile
export WORKON_HOME=/software/venv
source /usr/local/bin/
4. Make the environment variable effective: source ~/.bash_profile
5、Operating commands
Create a virtual environment: mkvirtualenv [virtual environment name]
List virtual environments: lsvirtualenv
Switching virtual environments: workon [virtual environment name]
The above is the way to install the Python virtual environment virtualenv for Linux all the content, I hope you more support me ~!