windows system is installed python virtual environment virtualenv

  1. Python first installed, open cmd command line window, enter Python, press enter, see below;

    windows system is installed python virtual environment virtualenv

  2. To third packet inspection has been installed, the input pip list, prior to installation to ensure that not too virtualenv, see below;

    windows system is installed python virtual environment virtualenv

  3. Pip installation using the virtualenv, command pip install virtualenv, after the installation is completed, the prompt "Successfully installed virtualenv-xxx" as shown below;

    windows system is installed python virtual environment virtualenv

  4. 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;

    windows system is installed python virtual environment virtualenv

  5. 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;

    windows system is installed python virtual environment virtualenv

  6. 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;

    windows system is installed python virtual environment virtualenv

 

 

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:

https://www.cnblogs.com/xfxing/p/9503047.html

Guess you like

Origin blog.csdn.net/mysteryflower/article/details/92820923