前提:Windows已安装Python 参考官方文档: https://docs.python.org/3/tutorial/venv.html

C:\xxx>python -m venv tutorial-env

C:\xxx>tutorial-env\Scripts\activate.bat

进入名为tutorial-env的Python开发虚拟环境