我正在尝试使用pip安装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编译问题。