pip install:命令clang失败

时间:2013-03-29 23:51:38

标签: python clang virtualenv pip xcode4.6

我正在使用Heroku并使用pip来安装所有的requirements.txt

我正在运行pip install -r requirements.txt。它安装了一堆软件包但是我得到了

  Running setup.py install for gevent
    building 'gevent.core' extension
    clang -fno-strict-aliasing -fno-common -dynamic -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -mno-fused-madd -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch i386 -arch x86_64 -pipe -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c gevent/core.c -o build/temp.macosx-10.8-intel-2.7/gevent/core.o
    clang: warning: argument unused during compilation: '-mno-fused-madd'
    In file included from gevent/core.c:253:
    gevent/libevent.h:9:10: fatal error: 'event.h' file not found
    #include "event.h"
             ^
    1 error generated.
    error: command 'clang' failed with exit status 1
    Complete output from command /Users/alexoliveira/Coding/SimplePrints- backend/venv/bin/python -c "import setuptools;__file__='/Users/alexoliveira/Coding/SimplePrints-backend/venv/build/gevent/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/43/yw1jdkb91nqgpnn5lz0ps0wm0000gn/T/pip-dWiY43-record/install-record.txt --single-version-externally-managed --install-headers /Users/alexoliveira/Coding/SimplePrints-backend/venv/include/site/python2.7:
    running install

running build

running build_py

running build_ext

building 'gevent.core' extension

clang -fno-strict-aliasing -fno-common -dynamic -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -mno-fused-madd -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch i386 -arch x86_64 -pipe -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c gevent/core.c -o build/temp.macosx-10.8-intel-2.7/gevent/core.o

clang: warning: argument unused during compilation: '-mno-fused-madd'

In file included from gevent/core.c:253:

gevent/libevent.h:9:10: fatal error: 'event.h' file not found

#include "event.h"

         ^

1 error generated.

error: command 'clang' failed with exit status 1

我已经安装了Xcode命令行工具,但这似乎没有帮助。我正在使用Xcode 4.6.1。和Python 2.7.2。任何帮助都会非常感激。

0 个答案:

没有答案