首页 > 解决方案 > 在 Python 上安装 xgboost - 找不到频道

问题描述

我尝试使用以下命令安装 xgboost:

pip install setuptools
conda config --add channels conda-forge 
conda install xgboost

收到以下错误:

Solving environment: failed

PackagesNotFoundError: The following packages are not available from current  channels:

  - xgboost

Current channels:

  - https://conda.anaconda.org/conda-forge/win-64
  - https://conda.anaconda.org/conda-forge/noarch
  - https://conda.anaconda.org/anaconda-fusion/win-64
  - https://conda.anaconda.org/anaconda-fusion/noarch
  - https://repo.anaconda.com/pkgs/main/win-64
  - https://repo.anaconda.com/pkgs/main/noarch
  - https://repo.anaconda.com/pkgs/free/win-64
  - https://repo.anaconda.com/pkgs/free/noarch
  - https://repo.anaconda.com/pkgs/r/win-64
  - https://repo.anaconda.com/pkgs/r/noarch
  - https://repo.anaconda.com/pkgs/pro/win-64
  - https://repo.anaconda.com/pkgs/pro/noarch
  - https://repo.anaconda.com/pkgs/msys2/win-64
  - https://repo.anaconda.com/pkgs/msys2/noarch

安装工具

不确定什么不起作用。有任何想法吗?

标签: pythoncondachannelxgboostforge

解决方案


推荐阅读