因为源在国外容易timeout,可以换成国内镜像源啊,临时使用范例(清华镜像源):
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple xgboost
问题详述:我安装xgboost用pip install装不上了,为什么?
解答:
Anaconda下xgboost安装
xgboost安装:
1.下载xgboost安装包:https://www.lfd.uci.edu/~gohlke/pythonlibs/#xgboost
xgboost-0.82-cp27-cp27m-win32.whl
xgboost-0.82-cp27-cp27m-win_amd64.whl
xgboost-0.90-cp35-cp35m-win32.whl
xgboost-0.90-cp35-cp35m-win_amd64.whl
xgboost-0.90-cp36-cp36m-win32.whl
xgboost-0.90-cp36-cp36m-win_amd64.whl
xgboost-0.90-cp37-cp37m-win32.whl
xgboost-0.90-cp37-cp37m-win_amd64.whl
多种版本选择 cp27 表示 python2.7,32位和64位可以选择
2.下载完成后放入python 安装目录下 \Anaconda\Scripts
3.pip install xgboost
其他相关包的安装 https://blog.csdn.net/Jarry_cm/article/details/92836423
因为源在国外容易timeout,可以换成国内镜像源啊,临时使用范例(清华镜像源):
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple xgboost