我试图通过运行以下命令,在Mac OS X上安装pycrypto包:pycrypto安装失败
ARCHFLAGS=-Wno-error CFLAGS=-I/opt/local/include LDFLAGS=-L/opt/local/lib sudo -E pip install pycrypto**
但它失败,并显示以下错误:
/usr/bin/clang -bundle -undefined dynamic_lookup -isysroot /Developer/SDKs/MacOSX10.6.sdk -g -L/opt/local/lib -Wno-error -L/opt/local/lib -I/opt/local/include -Wno-error build/temp.macosx-10.6-x86_64-3.4/src/_fastmath.o -lgmp -o build/lib.macosx-10.6-x86_64-3.4/Crypto/PublicKey/_fastmath.so
ld: library not found for -lSystem
clang: error: linker command failed with exit code 1 (use -v to see invocation)
error: command '/usr/bin/clang' failed with exit status 1
这对我有效,谢谢! (在osx 10.11.2上使用sdk 10.11) – verboze
谢谢。将10.9.sdk更改为10.11.sdk也适用于我。 – Singletoned