Linux installation python virtual environment virtualenv

Source: Internet
Author: User
Tags virtual environment virtualenv

1, install virtulenv, Virtulenvwrapper bag

1 Install virtualenv virtualenvwrapper

2, Virtualenvwrapper is the extension tool of virtualenv, can easily create, delete, copy, switch different virtual environment.

3, set the environment variables, add the following two lines to the ~/.bash_profile

1 export workon_home=/software/venv2 source/usr/local/bin/virtualenvwrapper. SH

4. Make the environment variable effective: source ~/.bash_profile

5. Operation Command

1 Create a virtual environment: mkvirtualenv [Virtual environment name] 2 3 List Virtual environments: Lsvirtualenv 4 5 Switching Virtual environments: Workon [virtual Environment name]

Linux installation python virtual environment virtualenv

Related Article

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.