[Python] using Virtualenvwrapper

Source: Internet
Author: User
Tags virtual environment virtualenv

What is virtualenv

Virtualenv is a Python environment management tool that isolates Python's operating environment. In other words, a project can have a running environment that belongs to this project, thus avoiding errors caused by relying on different modules.

What is Virtualenvwrapper

Virtualenv's upgraded version, more efficient management of the Python development environment. You can view all of the env and switch directly through the env, without the need to input the path and other things, more unified and efficient.

Recommended use: Virtualenvwrapper, the following is the installation and common commands

Installation
    1. pip install virtualenvwrapper
    2. Add this line to the shell environmentsource /usr/local/bin/virtualenvwrapper.sh
Common directives
    • To create a new virtual environment:mkvirtualenv env名称
    • To switch environments:workon env名称
    • Exit the Environment:deactivate
    • List all the environments:lsvirtualenv
    • Delete environment: rmvirtualenv , Note: Remove the deleted environment before exiting

More instructions: Direct input virtualenvwrapper will list all instructions and explanations.

Error

If you encounter six installation issues during PIP installation

    • You can try using brew to install Python,
    • Orpip install --ignore-installed six

[Python] using Virtualenvwrapper

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.