Use pip Command to download the library of the virtual environment pip install virtualenv
install virtualenvwrapper pip install virtualenvwrapper
mkvirtualenv env01 ( Environment name )
mkvirtualenv -p python3 py3env01 (python3 Under this condition, the environment name is py3env01 Subvirtual environment of )
The default path of the created file is Under the previously configured path exportWORKON_HOME=’~/.virtualenvs’ Subvirtual environment input path
Query the list of subvirtual environments
mkvirtualenv env_name
workon env_name # Enter a virtual environment
rmvirtualenv env_name ( It can be used in virtual environment , It can also not be used in the virtual environment )
deactivate
workon or lsvirtualenv View all currently existing virtual environments ,
lssitepackages( View the installed third-party command packages of all virtual environments , No need to enter the virtual environment )
cd virtualenv ( Jump to the directory where the virtual environment is located )
Out of the environment deactivate