Directing PyCharm to Python 3.3 interpreter?(将 PyCharm 定向到 Python 3.3 解释器?)
问题描述
我不知道为什么我会遇到这么多麻烦.我在 OS X 10.7 上,我使用默认设置安装了 Python,并运行了包含的 .command 文件.
我只想让 PyCharm 与 Python 3.3 一起工作,但我似乎找不到工作的解释器.唯一一个我可以立即找到负载(提供分发"和设置工具"包)并给我一些骨架未能生成"错误.如果我选择其中一个 2.7 解释器,它会加载一段时间,但我仍然会收到类似的错误.我也遇到了一些找不到 Python 打包工具的问题(通常是pip").
找了好久还是没找到解决办法.
PyCharm 自动检测从 http:/安装的 Python 的 Python 3.3 路径/python.org mpkg 安装程序:
/Library/Frameworks/Python.framework/Versions/3.3/bin/python3将此解释器添加到 PyCharm 后,安装包管理工具(点击 Install 'distribute',然后点击 Install 'pip'):p>
使用 Upgrade 按钮将 pip 升级到最新版本(分发升级将失败).
现在您可以使用 Install 按钮安装软件包,例如可以从 PyCharm 的解释器对话框中安装 Django:
如果您遇到代码补全问题,请尝试 File |Invalidate Caches,重启 PyCharm 并等待索引完成.对我来说,开箱即用效果很好:
I'm not sure why I'm having so much trouble with this. I'm on OS X 10.7, and I installed Python with default settings and ran the .command file included.
I just want to get PyCharm working with Python 3.3, but I can't seem to find a working interpreter. The only one I can find loads instantly (gives 'distribute' and 'setuptools' packages) and gives me 'some skeletons failed to generate' errors. If I choose one of the 2.7 interpreters it loads for a while but I still get a similar error. I also get some issue with Python packaging tools not being found (usually it's 'pip').
I've searched for a long time but can't find a solution.
PyCharm detects Python 3.3 path automatically for the Python installed from http://python.org mpkg installer:
/Library/Frameworks/Python.framework/Versions/3.3/bin/python3
Once you add this interpreter to PyCharm, install the package management tools (click on the Install 'distribute', then click on Install 'pip'):
Upgrade pip to the latest version using the Upgrade button (distribute upgrade will fail).
Now you can install packages with the Install button, for example Django can be installed from the Interpreters dialog in PyCharm:
If you have problems with code completion, try File | Invalidate Caches, restart PyCharm and wait until indexing is finished. For me it worked fine out of the box:
这篇关于将 PyCharm 定向到 Python 3.3 解释器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:将 PyCharm 定向到 Python 3.3 解释器?
基础教程推荐
- 修改列表中的数据帧不起作用 2022-01-01
- 包装空间模型 2022-01-01
- Plotly:如何设置绘图图形的样式,使其不显示缺失日期的间隙? 2022-01-01
- PermissionError: pip 从 8.1.1 升级到 8.1.2 2022-01-01
- 使用大型矩阵时禁止 Pycharm 输出中的自动换行符 2022-01-01
- 求两个直方图的卷积 2022-01-01
- 无法导入 Pytorch [WinError 126] 找不到指定的模块 2022-01-01
- PANDA VALUE_COUNTS包含GROUP BY之前的所有值 2022-01-01
- 在同一图形上绘制Bokeh的烛台和音量条 2022-01-01
- 在Python中从Azure BLOB存储中读取文件 2022-01-01
