0
我已經安裝了Scikit學習的所有依賴項。但是,當我運行在Windows 7中構建scikit-learn時出現的問題
python setup.py build
或
python setup.py install
命令我碰到下面的錯誤。
c:/mingw/bin/../lib/gcc/mingw32/4.7.2/../../../../mingw32/bin/ld.exe: build\temp
.win32-2.7\Release\sklearn\ensemble\_gradient_boosting.o: bad reloc address 0x0
in section `.data'
collect2.exe: error: ld returned 1 exit status
error: Command "g++ -shared build\temp.win32-.7\Release\sklearn\ensemble\_gradie
nt_boosting.o -LC:\Python27\libs LC:\Python27\PCbuild -Lbuild\temp.win32-2.7 -
lpython27 -lmsvcr90 -o build\lib.win32-2.7\sklearn\ensemble\_gradient_boosting.p
yd" failed with exit status 1
這是什麼原因?這是最新的開發版本的問題(我使用的是github倉庫的最新版本)。 我該如何解決這個問題?
已經安裝BLAS如MKL或者你的機器上OpenBLAS的自定義實現? – ogrisel