Python3.5 above version comes with a virtual environment.

python -m venv .venv

The first three-word command, followed by the file in a folder inside the virtual environment of the production .venv

 In the directory where you work, where you build a virtual environment.

source .venv/bin/activate

Activate python virtual environment

Subsequent related packages mounted pip install

Guess you like

Origin www.cnblogs.com/sidianok/p/11546467.html