我已经安装了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这是什么原因呢?我该如何解决这个问题?
发布于 2013-07-21 23:29:09
显然,你不是唯一一个在windows下构建母版有问题的人。
然而,没有一个经常为scikit-learn做贡献的人使用windows作为他们的主要开发平台,所以如果一些windows专家能帮助我们修复这个版本,我们将不胜感激。我刚刚在这里打开了一个问题来跟踪构建问题:
https://stackoverflow.com/questions/17598112
复制相似问题