将PyCharm定向到Python 3.3解释器? [英] Directing PyCharm to Python 3.3 interpreter?

查看:112
本文介绍了将PyCharm定向到Python 3.3解释器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不确定为什么我遇到这么多麻烦.我在OS X 10.7上,并且使用默认设置安装了Python,并运行了包含的.command文件.

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.

我只想让PyCharm与Python 3.3一起工作,但是我似乎找不到有效的解释器.我可以立即找到唯一的负载(提供"distribute"和"setuptools"包),并给我某些骨架无法生成"错误.如果我选择2.7解释器之一,它会加载一段时间,但仍然会出现类似的错误.我也遇到了找不到Python打包工具的问题(通常是'pip').

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自动检测从 http:/安装的Python的Python 3.3路径./python.org mpkg安装程序:

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

将此解释器添加到PyCharm之后,请安装软件包管理工具(单击安装'distribute',然后单击安装'pip'):

Once you add this interpreter to PyCharm, install the package management tools (click on the Install 'distribute', then click on Install 'pip'):

使用 Upgrade 按钮将点升级到最新版本(分布式升级将失败).

Upgrade pip to the latest version using the Upgrade button (distribute upgrade will fail).

现在,您可以使用 Install 按钮安装软件包,例如,可以从PyCharm的解释器"对话框中安装Django:

Now you can install packages with the Install button, for example Django can be installed from the Interpreters dialog in PyCharm:

如果您在代码完成方面遇到问题,请尝试File |. Invalidate Caches,重新启动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解释器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆