在mac上安装gevent for python3的问题

时间:2014-09-15 18:44:10

标签: python-3.x gevent

我尝试安装它:

sudo pip3 install git+git://github.com/fantix/gevent.git

我收到以下错误:

14 warnings and 1 error generated.
error: command '/usr/bin/clang' failed with exit status 1

查看回溯消息,这是错误:

/usr/bin/clang -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -U__llvm__ -DLIBEV_EMBED=1 -
DEV_COMMON= -DEV_CLEANUP_ENABLE=0 -DEV_EMBED_ENABLE=0 -DEV_PERIODIC_ENABLE=0 -Ibuild/temp.macosx-
10.6-intel-3.4/libev -Ilibev -
I/Library/Frameworks/Python.framework/Versions/3.4/include/python3.4m -c gevent/gevent.corecext.c 
-o build/temp.macosx-10.6-intel-3.4/gevent/gevent.corecext.o

gevent/gevent.corecext.c:3:33: error: expected identifier or '('
/* Generated by Cython 0.21 */ */

我试着调试但没有运气。有人有类似的问题吗?

谢谢!

1 个答案:

答案 0 :(得分:3)

问题解决了。

gevent/gevent.corecext.c:3:33: error: expected identifier or '('
/* Generated by Cython 0.21 */ */

我刚刚删除了该文件中的* /并且有效。不知道这是如何产生的。