如何知道平台支持哪个xgboost轮以及如何在Python 3.8中安装它

问题描述

我在为venv 3.8.5安装xgboost时遇到问题。命令pip install xgboostpip3 install xgboost不起作用。当我尝试使用anaconda安装xgboost时,我得到了

UnsatisfiableError: The following specifications were found
to be incompatible with the existing python installation in your environment:

Specifications:

  - py-xgboost -> python[version='>=2.7,<2.8.0a0|>=3.6,<3.7.0a0|>=3.7,<3.8.0a0|>=3.5,<3.6.0a0']

Your python: python=3.8

If python is on the left-most side of the chain,that's the version you've asked for.
When python appears to the right,that indicates that the thing on the left is somehow
not available for the python version you are constrained to. Note that conda will not
change your python version to a different minor version unless you explicitly specify
that.

The following specifications were found to be incompatible with your system:

  - feature:/win-64::__cuda==9.1=0
  - feature:|@/win-64::__cuda==9.1=0

Your installed version is: 9.1

因此,我决定使用滚轮安装xgboost。他们建议在页面Click Here上下载我想要的提交ID并使用

pip install <url to the wheel>

可以在Click Here处找到滚轮的网址。我下载了适用于Windows的最新轮子,然后打开了cmd,并出现以下错误

C:\Users\Ivan\Downloads>pip install xgboost-1.1.0_SNAPSHOT+e4f5b6c84f7350e8bc53330632d7f2cdbe5469d8-py2.py3-none-win_amd64.whl
ERROR: xgboost-1.1.0_SNAPSHOT+e4f5b6c84f7350e8bc53330632d7f2cdbe5469d8-py2.py3-none-win_amd64.whl is not a supported wheel on this platform.

C:\Users\Ivan\Downloads>pip install xgboost-1.1.0-cp39-cp39-win_amd64.whl
ERROR: xgboost-1.1.0-cp39-cp39-win_amd64.whl is not a supported wheel on this platform.

C:\Users\Ivan\Downloads>pip install xgboost-1.1.0-cp39-cp39-win32.whl
ERROR: xgboost-1.1.0-cp39-cp39-win32.whl is not a supported wheel on this platform.

C:\Users\Ivan\Downloads>pip install xgboost-1.0.0_SNAPSHOT+44469a0ca9375f3f44bc9b827a38e0eeed37d475-py2.py3-none-win_amd64.whl
ERROR: xgboost-1.0.0_SNAPSHOT+44469a0ca9375f3f44bc9b827a38e0eeed37d475-py2.py3-none-win_amd64.whl is not a supported wheel on this platform.

我只是想知道合适的轮子是什么,与降级当前的Python版本相比,我还有哪些其他选择

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其...
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。...
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbc...