今天pip install 安装包出一下错误:
creating build/temp.macosx-10.6-x86_64-2.7/sasl
gcc -fno-strict-aliasing -I/Users/zhangyan/miniconda2/envs/ikang/include -arch x86_64 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -Isasl -I/Users/zhangyan/miniconda2/envs/ikang/include/python2.7 -c sasl/saslwrapper.cpp -o build/temp.macosx-10.6-x86_64-2.7/sasl/saslwrapper.o
warning: include path for stdlibc++ headers not found; pass ‘-stdlib=libc++’ on the command line to use the libc++ standard library instead [-Wstdlibcxx-not-found]
sasl/saslwrapper.cpp:249:10: fatal error: ‘string’ file not found
#include
^~~~~~~~
1 warning and 1 error generated.
error: command ‘gcc’ failed with exit status 1
Failed building wheel for sasl
解决办法:更换conda安装
conda install sasl
顺利解决~