For details about how to configure virtualenvwrapper of python3 in linux,

Source: Internet
Author: User
Tags virtualenv

For details about how to configure virtualenvwrapper of python3 in linux,
Python version management & virtualenv Management

Virtualenvwrapper is an extension package used to manage virtualenv, which is easy to use.

Note that in python3, pip installation: sudo apt install python3-pip

Python2: sudo apt install python2-pip

 

1. virtualenvwrapper installation:

# Install virtualenv (sudo) pip install virtualenv # install virtualenvwrapper (sudo) pip install virtualenvwrapper

 

2. Configuration:

Modify ~ /. Bash_profile or other environment variable-related files (for example,. bashrc (under my Ubuntu15.10) or. zshrc after ZSH), 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: Create the runtime environment zqxt

Workon zqxt: Work in the zqxt environment or switch from another environment to the zqxt Environment

Deactivate: Exit the terminal environment

 

Others:

RmvirtualenvENV: Delete the running environment ENV

MkprojectMic: Create a mic project and a running environment mic

Mktmpenv: Create a temporary running environment

Lsvirtualenv: List available runtime Environments

Lssitepackages: List packages installed in the current environment

 

Note: It can also be used directly.PyenvMulti-version python management with virtualenv.

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.