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 解释器?
基础教程推荐
- Python kivy 入口点 inflateRest2 无法定位 libpng16-16.dll 2022-01-01
- 使用PyInstaller后在Windows中打开可执行文件时出错 2022-01-01
- 何时使用 os.name、sys.platform 或 platform.system? 2022-01-01
- Dask.array.套用_沿_轴:由于额外的元素([1]),使用dask.array的每一行作为另一个函数的输入失败 2022-01-01
- 如何让 python 脚本监听来自另一个脚本的输入 2022-01-01
- 用于分类数据的跳跃记号标签 2022-01-01
- 如何在海运重新绘制中自定义标题和y标签 2022-01-01
- 线程时出现 msgbox 错误,GUI 块 2022-01-01
- 在 Python 中,如果我在一个“with"中返回.块,文件还会关闭吗? 2022-01-01
- 筛选NumPy数组 2022-01-01