CentOS6.7 Virtual Environment Virtualenvwrapper installation

Source: Internet
Author: User

Prerequisite: Once the Python is installed.

Installing Virtualenvwrapper

[Root@xu flaskr]# pip Install Virtualenvwrapper

To add virtualenvwrapper.sh to the environment variable, mkvirtualenv will prompt for no command.

[Root@xu bin]# source/opt/python3.4/bin/virtualenvwrapper.sh

    • workonSwitch to Environment

    • deactivateUnregister the current environment

    • lsvirtualenvList all environments

    • Mkvirtualenv Creating an environment

    • rmvirtualenvDelete an environment

    • cpvirtualenvReplication environment

    • cdsitepackagesCD to the directory of the current environment site-packages

    • lssitepackagesList content in the current environment site-packages

    • setvirtualenvprojectBinding existing projects and environments

    • wipeenvClear all third-party packages in the environment

Note:

environments created with MKVIRTUALENV are installed by default into /root/.virtualenvs

CentOS6.7 Virtual Environment Virtualenvwrapper installation

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.