Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/python-2.7/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 2.7 在python下安装xgboost,64位msys失败_Python 2.7_Msysgit_Msys_Msys2_Xgboost - Fatal编程技术网

Python 2.7 在python下安装xgboost,64位msys失败

Python 2.7 在python下安装xgboost,64位msys失败,python-2.7,msysgit,msys,msys2,xgboost,Python 2.7,Msysgit,Msys,Msys2,Xgboost,我想使用anaconda python安装xgboost。在此过程中,我尝试安装xgboost。在尝试执行xgboost时,我遇到以下错误: C:\GitRepository\xgboost> g++ -m64 -c -Wall -O3 -msse2 -Wno-unknown-pragmas -funroll-loops -fopenmp -fPIC -o updater.o src/tree/updater.cpp src/tree/updater.cpp:1:0: warnin

我想使用anaconda python安装xgboost。在此过程中,我尝试安装xgboost。在尝试执行xgboost时,我遇到以下错误:

C:\GitRepository\xgboost>


g++ -m64 -c -Wall -O3 -msse2  -Wno-unknown-pragmas -funroll-loops -fopenmp -fPIC
 -o updater.o src/tree/updater.cpp
src/tree/updater.cpp:1:0: warning: -fPIC ignored for target (all code is positio
n independent)
 // Copyright 2014 by Contributors
 ^
src/tree/updater.cpp:1:0: sorry, unimplemented: 64-bit mode not compiled in
make: *** [updater.o] Error 1
我从其他堆栈溢出帖子中了解到,32位gcc不能与我正在使用的64位anaconda配合使用。然而,当我安装mingw-w64时,我可以看到它只有用于mingw32的g++而不用于mingw-w64。在mingw-w64包下,g++和其他应用程序+文件夹仅针对mingw32而不针对64。对于mingw-64,仅存在批处理文件和internet快捷方式

请您指导我哪里出了问题,或者指导我到一个合适的地方,从那里我可以下载mingw-64

提前感谢。

如果您真的在使用,那么您不应该下载单独的编译器。您应该通过运行pacman-s mingw-w64-x86_64-toolchain,使用MSYS2的包管理器安装64位g++。然后确保使用“开始”菜单中名为类似MSYS2 Win64 shell的快捷方式启动MSYS2 shell。在Bash中键入哪个g++并确保它输出/mingw64/bin/g++。然后您应该能够为64位窗口编译代码


我不确定这个答案是否完整。如果您需要有关MSYS2的更多帮助,最好发布您正在运行的下载/提取源代码和生成的确切命令,以便其他人可以重现错误。

谢谢。我会按照建议去做,然后再联系你。