Build a Python standalone virtual environment

Source: Internet
Author: User
Tags virtual environment virtualenv

Virtualenv can build a virtual and stand-alone Python environment, allowing each project environment to be isolated from other projects, keeping the environment clean, and resolving package conflict issues (very useful).

Installation:

Virtualenv is actually a python package that can be installed directly with Easy_install or PIP

Easy_install virtualenv or pip install virtualenv or apt-get install python-virtualenv

Use:

Create a virtual Environment: virtualenv [Absolute path to--python=/python] Project-name (if you have multiple versions of Python, you can also specify which version to use)

To start the virtual environment:


Exiting the virtual environment: deactivate

Virtualenvwrapper is a virtualenv extension tool that makes it easy to create, delete, copy, and switch between different virtual environments. Want to know the words can own Google.

Build a Python standalone virtual environment

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.