【发布时间】:2016-02-18 09:34:16
【问题描述】:
http://xgboost.readthedocs.org/en/latest/python/python_intro.html
在 xgboost 的主页上(上面的链接),它说: 要安装 XGBoost,请执行以下步骤:
需要在项目根目录下运行
make-
在python-package目录下运行
python setup.py 安装
但是,当我这样做时,对于第 1 步,出现以下错误: make :术语“make”未被识别为 cmdlet、函数、脚本文件或可运行程序的名称。检查 名称的拼写,或者如果包含路径,请验证路径是否正确并重试。
然后我跳过step1,直接做了step 2,又出现了一个错误:
Traceback (most recent call last):
File "setup.py", line 19, in <module>
LIB_PATH = libpath['find_lib_path']()
File "xgboost/libpath.py", line 44, in find_lib_path
'List of candidates:\n' + ('\n'.join(dll_path)))
__builtin__.XGBoostLibraryNotFound: Cannot find XGBoost Libarary in the candicate path, did you install compilers and run build.sh in root path?
有人知道如何在Windows10平台上安装xgboost for python吗?感谢您的帮助!
【问题讨论】:
-
我发现最受好评的答案比接受的答案更容易。只是在这里发表评论,以便人们节省一些时间。
标签: python python-2.7 installation machine-learning xgboost