About the virtual environment in Python virtualenv

Source: Internet
Author: User

Virtualenv is a common virtual environment in Python. and the virtual environment created is independent of the host environment. Maintained a purity of

Here's a summary. How to use the following windows:

1) Install Virtualenv

Pip Install Virtualenv

2) Enter a directory that you want to be a virtual environment, enter the command you created:

>D:>CD Python>mkdir python-env>virtualenv venv

3) Turn on and off:

>CD venv>scripts/activate# off >deactivate

Using a Python virtual environment under Linux:

A third-party module is referenced by default under Linux. and Windows does not

Pip install virtualenvmkdir/home/envcd/home/envvirtualenv python_envcd python_envsource./bin/activate


This article from "ehealth" blog, declined reprint!

About the virtual environment in Python 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.