を使用して環境pip
からパッケージをインストールする場合。virtualenv
そして、私はエラーを受け取ります、
building 'urwid.str_util' extension
/usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -Os -w -pipe -march=native -Qunused-arguments -mmacosx-version-min=10.7 -fwrapv -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I -I/Users/dreampuf/opt/homebrew/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c source/str_util.c -o build/temp.macosx-10.7-intel-2.7/source/str_util.o
source/str_util.c:25:10: fatal error: 'Python.h' file not found
#include <Python.h>
^
1 error generated.
error: command '/usr/bin/clang' failed with exit status 1
次に、パッケージを手動でインストールしてみます。
/usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -Os -w -pipe -march=native -Qunused-arguments -mmacosx-version-min=10.7 -fwrapv -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/dreampuf/opt/homebrew/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c source/str_util.c -o build/temp.macosx-10.7-intel-2.7/source/str_util.o
pip の元のコマンドと上記のコマンドの違いは、単一の-I
パラメーターを削除してからコンパイルできることです。
どうすればこれを修正できますか? -I
すべてのコンパイル コマンドのパラメーターを削除することはできません。