python_ virtual environment

1. Install virtualenv

  pip install virtualenv

2. Create a virtual environment

  virtualenv [virtual environment name]

3. Enter the virtual environment

  Version 3.7 - into the virtual environment created folder below the Scripts folder, that is, into the virtual environment. Prior to version ~ (Scripts execute activate command in the file into the virtual environment.)

4. Exit the virtual environment

  In addition to version 3.7 ~ Scripts folder is not a virtual environment. Prior to version ~ (deactivate command execution in the Scripts folder into the virtual environment.)

Specifies the python interpreter 5. Create a virtual environment

  virtualenv -p [python interpreter path, such as: C: \ Python37 \ python.exe] [virtual environment name]

 

Guess you like

Origin www.cnblogs.com/wangdianchao/p/12399146.html
Recommended