Installation and use of Virtualenvwrapper

Source: Internet
Author: User

Original: http://www.cnblogs.com/asmer-stone/p/5470144.html

Virtualenvwrapper is an extension pack for managing virtualenv, which is handy.

1. Installation:

#安装virtualenv (sudo) pip install virtualenv# install virtualenvwrapper (sudo) pip 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/workspacesource/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 (RPM)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.