问题描述
除了python2.6和Snow Leopard之外,我什么都没有.一个主要问题是32位库和64位库.
另一个表现如下:
tppllc-mbp15$ sudo easy_install-2.6 appscript
Searching for appscript
Reading http://pypi.python.org/simple/appscript/
Reading http://appscript.sourceforge.net
Best match: appscript 0.21.1
Downloading http://pypi.python.org/packages/source/a/appscript/appscript-0.21.1.tar.gz#md5=351f3e493f9259516fce6eecde155195
Processing appscript-0.21.1.tar.gz
Running appscript-0.21.1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-DiXejT/appscript-0.21.1/egg-dist-tmp-brxccx
Compiling with an SDK that doesn't seem to exist: /Developer/SDKs/MacOSX10.4u.sdk
Please check your Xcode installation
ld: library not found for -lbundle1.o
collect2: ld returned 1 exit status
ld: library not found for -lbundle1.o
collect2: ld returned 1 exit status
lipo: can't open input file: /var/tmp//ccO2E68V.out (No such file or directory)
error: Setup script exited with error: command 'gcc-4.0' failed with exit status 1
有人知道"使用似乎不存在的SDK进行编译:/Developer/SDKs/MacOSX10.4u.sdk" 来自何处吗?在此项目的任何文件中都没有提到10.4.
appscript并不是唯一失败的项目,只是许多失败的项目之一.
我尝试重新安装xcode,整个操作系统(从一台干净的机器上启动)都存在问题.
如果我在python2.5下安装该软件包,它将起作用.这就是我目前的解决方案:继续使用python 2.5
似乎您可能已经从python.org或其他一些第三方安装程序安装了python 2.6. python.org python当前仅以32位(i386和ppc)构建,并且与OS X 10.3至10.6兼容.为此,它们使用10.4u SDK构建,该SDK可通过10.6 Xcode安装程序(在10.6安装DVD和其他地方)使用,但默认情况下未安装该SDK.再次运行10.6 Xcode安装程序并选择它.然后使用C扩展模块构建python软件包应该可以正常工作.
另一种解决方案是仅坚持使用Apple提供的10.6中的Python 2.6.1(默认情况下以64位运行),在这种情况下,您需要修复$ PATH或小心使用/usr/bin/easy_install-2.6
./p>
I've been having nothing but trouble with python2.6 and Snow Leopard. One major problem is 32 vs 64-bit libraries.
The other manifests itself like this:
tppllc-mbp15$ sudo easy_install-2.6 appscript
Searching for appscript
Reading http://pypi.python.org/simple/appscript/
Reading http://appscript.sourceforge.net
Best match: appscript 0.21.1
Downloading http://pypi.python.org/packages/source/a/appscript/appscript-0.21.1.tar.gz#md5=351f3e493f9259516fce6eecde155195
Processing appscript-0.21.1.tar.gz
Running appscript-0.21.1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-DiXejT/appscript-0.21.1/egg-dist-tmp-brxccx
Compiling with an SDK that doesn't seem to exist: /Developer/SDKs/MacOSX10.4u.sdk
Please check your Xcode installation
ld: library not found for -lbundle1.o
collect2: ld returned 1 exit status
ld: library not found for -lbundle1.o
collect2: ld returned 1 exit status
lipo: can't open input file: /var/tmp//ccO2E68V.out (No such file or directory)
error: Setup script exited with error: command 'gcc-4.0' failed with exit status 1
Does anyone have any idea where that "Compiling with an SDK that doesn't seem to exist: /Developer/SDKs/MacOSX10.4u.sdk" is coming from? There's no mention of 10.4 in any of the files for this project.
appscript isn't the only project that fails, just one of many.
I tried reinstalling xcode, and my entire operating system--starting on a clean machine--and there are problems.
If I install the package under python2.5 it works. That's my solution for now: to stay with python 2.5
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
.
这篇关于Python2.6和Snow Leopard.安装appscript(以及许多其他软件包)时出现问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!