Python2.6 and Snow Leopard. Problem installing appscript (and MANY other packages)

≡放荡痞女 提交于 2019-12-04 20:36:49

It appears you have likely installed a python 2.6 from python.org or some other 3rd-party installer. The python.org python's are currently built only as 32-bit (i386 and ppc) and are compatible with OS X 10.3 through 10.6. To do that, they are built with the 10.4u SDK which is available via the 10.6 Xcode installer (on the 10.6 Installation DVD and elsewhere), however that SDK is not installed by default. Run the 10.6 Xcode installer again and select it. Then builds of python packages with C extension module should work fine.

Another solution is to just stick with the Apple-supplied Python 2.6.1 in 10.6 (which runs as 64-bit by default) in which case you need to fix your $PATH or be careful to use /usr/bin/easy_install-2.6.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!