在Windows 7中构建问题时scikit学习 [英] Issue when building scikit-learn in windows 7

查看:337
本文介绍了在Windows 7中构建问题时scikit学习的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经安装了Scikit所有依赖学习。但是,当我运行

I've installed all dependencies for Scikit learn. But when I run

python setup.py build 

python setup.py install

命令我碰到下面的错误。

commands I get the following error.

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库中的最新主版)的一个问题。
我该如何解决这个问题?

What is the reason for this? Is this a problem with latest development version(I'm using the latest master version from github repository). How do I solve this issue?

推荐答案

显然,你是不是有问题windows下构建主唯一的一个。

Apparently you are not the only one having trouble building the master under windows.

不过据我所知没有定期的贡献者scikit学习使用Windows作为他们的主要开发平台,所以我们将AP preciate,如果某些窗口可专家帮助我们解决构建。我只是开了一个问题跟踪构建问题就在这里:

However AFAIK none of the regular contributors to scikit-learn use windows as their primary development platform, so we would appreciate it if some windows expert could help us fix the build. I just opened an issue to track the build problem here:

https://github.com/scikit-learn/scikit-learn/问题/ 2174

这篇关于在Windows 7中构建问题时scikit学习的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆