xgboost -... whl在此平台上不受支持

时间:2019-02-05 21:53:11

标签: python-3.x pip xgboost

类似于: whl is not a supported wheel on this platform xgboost pckage for python 3.6

但是两者都不适合我。 我需要在没有互联网的机器上安装xgboost。

我从https://pypi.org/project/xgboost/#files下载了xgboost-0.81-py2.py3-none-win_amd64.whl文件

我的环境:

  • Windows X64
  • Python 3.7.0
  • 点19.0.1

我收到一个错误: enter image description here

与此website中的“ xgboost-0.81-cp37-cp37m-win_amd64.whl”相同

我尝试用类似的方式安装“ scikit_learn-0.20.2-cp37-cp37m-win32.whl”,一切顺利。

我也尝试过

pip download xgboost -d "C:\USers...\XGBoost"
tar cvfz xgboost.tgz XGBoost

但是我有错误:

“ tar”无法识别为内部或外部命令

2 个答案:

答案 0 :(得分:0)

  

我尝试了……win32.whl,一切都进行得很好。

您有32位Python。使用它无法安装64位wheel(amd64.whl)。下载32位轮。

或将您的Python替换为64位Python,然后重新安装所有软件包。

答案 1 :(得分:0)

您可以使用Anaconda Powershell Prompt(菜单-> Anaconda-> Anaconda Powershell Prompt)来安装xgboost

命令: pip install xgboost

希望对您有帮助

相关问题