The use of Virtualenvwrapper in Linux

Source: Internet
Author: User

Original link: http://www.jianshu.com/p/3abe52adfa2b

Virtaulenvwrapper

Virtaulenvwrapper is an expansion pack for virtualenv that makes it easier to manage virtual environments and can do:

    1. Consolidate all virtual environments in one directory

    2. Manage (new, delete, copy) virtual environments

    3. Quickly switch virtual environments

    4. ...

Installation method

1, installation Virtualenvwrapper

Pip Install Virtualenvwrapper

2. Create a directory to store the virtual environment

mkdir ~/.virtualenvs

3. Add at the end of. BASHRC

Export workon_home=~//usr/local/bin/virtualenvwrapper.sh

4.

Run Source ~/.BASHRC

List of commands:

Workon: List of Virtual Environments lsvirtualenv: mkvirtualenv: New virtual Environment Workon [virtual Environment name]: Switching Virtual environments rmvirtualenv: Deleting a virtual Environment deactivate: leaving the virtual environment
PIP Freeze > Requirements.txt Export all dependencies to requirements.txt file in this environment

The use of Virtualenvwrapper in Linux

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.