【发布时间】:2015-06-15 02:33:20
【问题描述】:
我正在尝试 pip install scikit-learn,但收到此错误:
$ pip install scikit-learn
g++ -bundle -undefined dynamic_lookup -arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.6.sdk -isysroot /Developer/SDKs/MacOSX10.6.sdk -g -Wall -undefined dynamic_lookup -bundle -arch i386 -arch x86_64 -arch i386 -arch x86_64 build/temp.macosx-10.6-x86_64-2.7/sklearn/svm/libsvm.o -Lbuild/temp.macosx-10.6-x86_64-2.7 -llibsvm-skl -o build/lib.macosx-10.6-x86_64-2.7/sklearn/svm/libsvm.so
ld: library not found for -lc++
clang: error: linker command failed with exit code 1 (use -v to see invocation)
我已经成功安装了 numpy 和 scipy。
我在 Mac OSX Yosemite 上,并下载了最新版本的 XCode,希望它能解决 c 编译问题。
【问题讨论】:
标签: python c++ scikit-learn osx-yosemite libc++