Virtual environment - virtualenvwrapper

windows system

  • Win + R, input cmd, open a command line window

  • Input: pip install virtualenvwrapper-win

  • Open the Control Panel - System and Security - System - Advanced System Settings - Environment Variables - System Variables - click New,

  • Variable Name: Enter WORKON_HOME , variable values: Enter the path to the custom, to determine the save.

  •  

     

  • Enter the installation path pthon, I am here is C: \ python36 \ under Scripts, according to their specific installation path

  • Double-click virtualenvwrapper.bat

  • Reopen cmd command line window, you can use

use:

1, to create a virtual environment my_env

mkvirtualenv my_env

2, turn off the virtual environment

deactivate

3, running a virtual environment

workon my_env

 

Guess you like

Origin www.cnblogs.com/ruichow/p/11440640.html