在OS X 10.5的Python 2.6上安装PyObjC吗? [英] Install PyObjC on Python 2.6 on OS X 10.5?

查看:132
本文介绍了在OS X 10.5的Python 2.6上安装PyObjC吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

OS X 10.5.8随附于Python 2.5,并且已经安装了PyObjC.

OS X 10.5.8 came with Python 2.5, and had PyObjC already installed.

我从python.org网站安装了python 2.6,而PyObjC不存在.

I installed Python 2.6 from the python.org site, and PyObjC isn't there.

我找不到在Python 2.6安装上安装PyObjC的下载文件.是否正在检查PyObjC中继并尝试构建它是我唯一的选择?会开箱即用"吗?

I can't find a download to install PyObjC on my Python 2.6 install. Is checking out the PyObjC trunk and trying to build it my only choice? Will that work "out of the box"?

推荐答案

Apple随附PyObjC及其OS X 10.510.6随附的Python.它不是python.org安装程序的一部分.但是它应该很容易安装.只需按照此处的说明安装setuptools到python.org python 2.6.然后使用easy_install-2.6(它已经安装在/Library/Frameworks/Python.framework/Versions/2.6/bin中,并且可能已经在您的$ PATH上)进行操作:

Apple includes PyObjC with their Pythons that come with OS X 10.5 and 10.6. It is not part of the python.org installers. But it should be easy enough to install. Just install setuptools to the python.org python 2.6 following the instructions here. Then use easy_install-2.6 (which will have been installed in /Library/Frameworks/Python.framework/Versions/2.6/bin and may already be on your $PATH) to do:

easy_install-2.6 pyobjc==2.2b2

此处所述.如果您希望生活在最前沿,则可以尝试直接从svn存储库安装,因为最近有很多工作,主要是为了支持10.6.

as described here. If you want to live on the bleeding edge, you could try installing directly from the svn repository as there has been a lot of work recently, primarily in support of 10.6.

如果这看起来工作量太大,则可以通过 MacPorts :

If that seems like too much work, you could install an older version and all dependencies including python via MacPorts:

sudo port install py26-pyobjc2

这篇关于在OS X 10.5的Python 2.6上安装PyObjC吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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