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