Python虚拟环境(venv)允许仅为单个项目安装库,而不是在使用计算机的每个人之间共享库。
Step 1: Select File…Settings

Step 2: Click “Project Interpreter”
Then find the gear icon in the upper right. click on it and select “Add”

Step 3: Select Virtualenv Environment from the left
Then create a new environment. Usually it should be in a folder called venv in your main project. PyCharm does not always select the correct location by default, so carefully look at the path to make sure it is correct, then select “Ok”.
Inherit global site-packages 继承全局site-packages内的所有插件功能
Make avaiable to all projects 对所有项目有效

PyCharm项目下生成编译器相关文件

在项目目录下创建存放编译器相关文件

配置Python venv教程
1243

被折叠的 条评论
为什么被折叠?



