当我构建gevent时,我收到错误
Traceback (most recent call last): File "/usr/local/Cellar/python/2.7.1/bin/cython", line 7, in from Cython.Compiler.Main import main File "/usr/local/Cellar/python/2.7.1/lib/python2.7/site-packages/Cython-0.14.1-py2.7-macosx-10.4-i386.egg/Cython/Compiler/Main.py", line 19, in import Code ImportError: dlopen(/usr/local/Cellar/python/2.7.1/lib/python2.7/site-packages/Cython-0.14.1-py2.7-macosx-10.4-i386.egg/Cython/Compiler/Code.so, 2): no suitable image found. Did find: /usr/local/Cellar/python/2.7.1/lib/python2.7/site-packages/Cython-0.14.1-py2.7-macosx-10.4-i386.egg/Cython/Compiler/Code.so: mach-o, but wrong architecture
我尝试使用CFLAGS =“ - arch x86_64”指定架构,但它不起作用。
答案 0 :(得分:2)
重新编译gevent-1.0dev和带有标志的greenlet CFLAGS =“ - arch i386 -arch x86_64”是我问题的解决方案。
答案 1 :(得分:0)
gevent版本包括生成的.c源代码,因此您不需要Cython来构建它们。
开发版本(1.0)也自动生成包含那些.c文件的tarball:http://code.google.com/p/gevent/downloads/list