virtualenv 在windows下的简单应用

https://docs.python.org/zh-cn/3/tutorial/venv.html

cmd下的操作:

pip  install virtualenv

pip install virtualenvwrapper      //virtualenvwrapper是virtualenv的拓展包

创建文件夹 virtualenv testvir

进入到Scripts中执行命令:

进入虚拟环境:activate.bat  

  pip install 想要的包和库

退出:deactivate.bat

在pycharme端的操作:
 python interpreter的设置需要选择自己创建的环境下面的Python.exe文件

 

猜你喜欢

转载自www.cnblogs.com/mini-test/p/11904337.html
今日推荐