Python comes with a command to create a virtual environment

The new version of Python comes with a venv module, it can easily manage our virtual environment.

For example, we have a project called blog

mkdir blog
cd blog
python -m venv venv # 第一个venv是包名,第二个是创建虚环境名字
source venv/bin/activate # linux进入虚拟环境
# venv/Scripts\activate.bat #windows进入虚拟环境

So you can easily manage virtual environments of
other environmental management
https://blog.csdn.net/sunt2018/article/category/8903328

Guess you like

Origin blog.csdn.net/sunt2018/article/details/90640107
Recommended