Install Virtualenvwrapper under Windows

Source: Internet
Author: User
Tags virtual environment

Install Virtualenvwrapper under Windows

We can use Virtualenvwrapper to conveniently manage Python virtual environments, but when installing on Windows ..... Direct Installvirtualenvwrapper 是不行的...

To installvirtualenvwrapper-win  直接开始说步骤吧

1. Open cmd and enter:
Pip Install Virtualenvwrapper-win
2. Create a new virtual environment

Use the following command to create a virtual environment named Test10

Mkvirtualenv test10

After typing, wait a moment ..... The final appearance is shown in the figure below, which indicates the completion of the setup. The test10 is shown earlier, indicating that you have entered into the TEST10 virtual environment.

3. List all Virtual environments

Enter the following command directly at the command line

Lsvirtualenv

If you think this command is too long .... I usually use this command.

Workon

In fact, the Workon command is not used to display the directory ... But input Workon after not input other, he will list all the virtual environment, Workon specific role to write.

4. Enabling the Virtual environment

Enter the workon+ virtual environment name and you will be entered into the corresponding virtual environment. If you enter only Workon, all environments will be listed for you to choose from.

In fact, the work in the open to see what it means.

5. Jump to the directory where the virtual environment resides

Look at the folder path and it will work.

Cdvirtualenv

To the unfamiliar command line and bad English students remind: CD is change directory changes directories, virtual is a dummy, env is the environment abbreviation

6. Install with PIP in a virtual environment

Here take Beautifulsoup4 as an example

Pip Install Beautifulsoup4

7. View all installed Packages
Lssitepackages

Take this command apart: LS represents a list of lists, lists, site Pakages represents a third-party package, so it's okay to remember

8. Exiting the virtual environment
Deactivate

To the English bad students remind: activate is the meaning of the activity, the front plus de, is ' make inactive ', so it is good to remember.

9. Deleting a virtual environment

To delete a virtual environment test10 as an example

Rmvirtualenv test10

You can see that test10 was actually deleted.

Install Virtualenvwrapper under Windows

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.