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文件

 

 

 

 

 

 

 

 

 

 

相关文章:

  • 2021-06-08
  • 2022-12-23
  • 2022-01-02
  • 2021-09-26
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-04
猜你喜欢
  • 2021-06-02
  • 2021-10-30
  • 2021-06-16
  • 2021-07-13
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案