Virtualenvwrapper is an extension pack for managing virtualenv, which is handy.
1. Installation:
#安装virtualenv (sudo Install virtualenv# installation virtualenvwrapper (sudo Install Virtualenvwrapper
2. Configuration:
Modify ~/.bash_profile or other environment variable related files (such as. BASHRC (This is under my Ubuntu15.10) or use ZSH. ZSHRC) and add the following statement:
Export workon_home= $HOME/. Virtualenvsexport project_home= $HOME//usr/local/bin/ Virtualenvwrapper. SH
Then run:
SOURCE ~/.bash_profile
3. Usage:
Mkvirtualenv ZQXT: Creating a Running environment ZQXT
Workon ZQXT: Working in a ZQXT environment or switching from another environment to a ZQXT environment
Deactivate : Exiting the terminal environment
Other:
rmvirtualenv ENV: Delete Running environment env
mkproject Mic: Create MIC Project and run environment mic
mktmpenv: Creating a temporary runtime environment
lsvirtualenv: List the available run environments
lssitepackages: Lists the packages that are installed in the current environment
The created environment is independent, non-intrusive, and requires no sudo permission to manage the package using PIP.
Reference:http://www.ziqiangxuetang.com/django/django-install.html
Installation and use of Virtualenvwrapper