0

我正在使用 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。任何帮助将非常感激。

4

0 回答 0