如何在 Lion 中设置 PyDev/Eclipse?
我对如何处理这个问题有点困惑。我以前从未使用过 OS X,也不知道如何配置它。使用 Eclipse 下载 PyDev 后,我会像平常一样进入“Preferences > PyDev > Interpeter - Python > Auto Config”。我选择软件包:
但随后我不断收到此消息:
我在某处读过,我应该下载 Xcode 来获取 GCC(超过 GB),然后下载并构建 python它,...然后开始工作。但听起来似乎没有多大意义,因为 Lion 已经附带了 python 2.7.x,这正是我将要使用的。
我知道如何正确设置它吗?提前谢谢大家
I'm a little bit confused about how to approach this. I had never used OS X before and I don't know how to configure it. After downloading PyDev with Eclipse I go to "Preferences > PyDev > Interpeter - Python > Auto Config" as I would normally do. I select the packages:
But then I keep getting this message:
I've read somewhere that I should download Xcode to get GCC (which is over a GB), then download and build python with it,... and then start working. But doesn't sound like it makes a lot of sense since Lion already comes with python 2.7.x which is what I'll be using.
Any idea on how could I properly set this up? Thank you all in advance
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
好吧,它可能安装了 Python,但 PyDev 希望能够查看 python 文件的源代码以启用自动完成功能。
安装 Xcode,是的。 Xcode 附带了 Python 的开发人员版本,其中包括所有这些 .py 文件。我相当确定您实际上并不需要从头开始构建 Python(我从来不需要)——只需安装 Xcode 本身就足够了。
Well, it may have Python installed, but PyDev wants to be able to view the source of the python files to enable autocompletion.
Install Xcode, yeah. Xcode ships with the developer version of Python, which includes all those .py files. I'm fairly sure that you don't actually need to build Python from scratch (I never had to) - just installing Xcode itself should be enough.
理想情况下,从 http://python.org 安装 python(那里有 mac 版本下载)并使用该版本(并且不要不要过多修改 mac 本身安装的版本,因为它不适合开发,因为它没有提供源代码,其他程序可能依赖它,所以,如果发生不好的事情并且你破坏了它,它不会影响您的系统)。
Ideally, install python from http://python.org (there's a mac version download there) and use that version (and don't fiddle much with the version that's installed in mac itself as it's not suitable for development as it doesn't come up with sources and other programs may rely on it, so, if something bad happens and you break it, it won't affect your system).