-
Python first installed, open cmd command line window, enter Python, press enter, see below;
-
To third packet inspection has been installed, the input pip list, prior to installation to ensure that not too virtualenv, see below;
-
Pip installation using the virtualenv, command pip install virtualenv, after the installation is completed, the prompt "Successfully installed virtualenv-xxx" as shown below;
-
Create a virtual environment, I take the name is dataAnalysis, execute the command: virtualenv dataAnalysis, the name can be set according to their needs, wait for a while, appear done on behalf of creation is successful, see below;
-
Enter the virtual environment in which Scripts directory, see Scripts directory structure, you can see the command to activate and exit the virtual environment, see below;
-
Run activate, enter this virtual environment, you can see just in front of the name of creating a virtual environment for success or exit the virtual execution environment deactivate.bat, see below;
Installation virltualenvwrapper
New
It will automatically enter testvir2 directory
Exit the virtual environment:
Just enter: deactivate
What virtual environment by workon There are currently viewing
Enter a virtual environment: workon testvir2
Exit the virtual environment: deactivate
Development kits installed in a virtual environment
Workon execution error when testvir2
You need to install
Workon testvir2 normal access is performed again.
Installation requests
You can see the newly installed package requests by performing pip list
Uninstall request2
Command: pip uninstall requests
Text editor: