Python: easy_install eventlet 失败


换成 Xcode 4 后,安装 msgpack-python, eventlet 失败。

$ sudo easy_install -U eventlet

Searching for eventlet
Reading http://pypi.python.org/simple/eventlet/
Reading http://wiki.secondlife.com/wiki/Eventlet
Reading http://eventlet.net
Best match: eventlet 0.9.14
Processing eventlet-0.9.14-py2.6.egg
eventlet 0.9.14 is already the active version in easy-install.pth

Using /Library/Python/2.6/site-packages/eventlet-0.9.14-py2.6.egg
Processing dependencies for eventlet
Searching for greenlet>=0.3
Reading http://pypi.python.org/simple/greenlet/
Reading http://bitbucket.org/ambroff/greenlet
Reading http://undefined.org/python/#greenlet
Best match: greenlet 0.3.1
Downloading http://pypi.python.org/packages/source/g/greenlet/greenlet-0.3.1.tar.gz#md5=8d75d7f3f659e915e286e1b0fa0e1c4d
Processing greenlet-0.3.1.tar.gz
Running greenlet-0.3.1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-JAMmWT/greenlet-0.3.1/egg-dist-tmp-_klU_C
/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/distutils/dist.py:266: UserWarning: Unknown distribution option: repository
  warnings.warn(msg)
/usr/libexec/gcc/powerpc-apple-darwin10/4.2.1/as: assembler (/usr/bin/../libexec/gcc/darwin/ppc/as or /usr/bin/../local/libexec/gcc/darwin/ppc/as) for architecture ppc not installed
Installed assemblers are:
/usr/bin/../libexec/gcc/darwin/x86_64/as for architecture x86_64
/usr/bin/../libexec/gcc/darwin/i386/as for architecture i386
greenlet.c:1279: fatal error: error writing to -: Broken pipe
compilation terminated.
lipo: cant open input file: /var/tmp//ccUONk7y.out (No such file or directory)
error: Setup script exited with error: command gcc-4.2 failed with exit status 1
改成如下方式即可:

$ sudo env ARCHFLAGS="-arch x86_64" easy_install -U eventlet

相关内容

    暂无相关文章

评论关闭