【发布时间】:2019-11-20 04:28:35
【问题描述】:
我已经分别安装了pycharm community 2019.2.4版本和python 3.6。
我现有的 python 已经安装了所有必需的包。
现在,每当我在 Pycharm 中打开 new project 时,每次它都会创建一个 new virtual environment,而没有预安装任何软件包。所以每次我都要安装包。
我还尝试使用现有的 python 位置更改解释器,但没有奏效。以下是我遵循的步骤:
我的python3.6 位置:C:\Users\user-name\AppData\Local\Programs\Python\Python36
1. Open Pycharm -> Go to configure -> Settings
2. Project Interpreter -> Add ->
3. In the Add section I add the new location as `C:\Users\user-name\AppData\Local\Programs\Python\Python36`
4. Then I click on New-Project and then ok.
我看到创建了新的虚拟环境。
如果有人可以帮助我提供一些非常有用的步骤文档。我在stackoverflow中关注了一些以前的链接,但可能我遗漏了一些东西。
【问题讨论】:
-
Pycharm 不使用已安装的 python 版本,它实际上使用它自己的虚拟 python 环境来运行您的项目
标签: python-3.x pycharm