无法在 Win10 中使用 miniconda 安装 GCC

时间:2021-06-20 15:15:36

标签: anaconda

我正在尝试在安装 fbprophet 之前安装 gcc。

我尝试了以下两种方法,但没有奏效。感谢您的帮助。

  1. conda 安装 gcc
  2. conda install -c conda-forge gcc

https://anaconda.org/conda-forge/gcc

错误是:

(forecast) C:\Users>conda install -c conda-forge gcc
Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Collecting package metadata (repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.

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

  - gcc

Current channels:

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

To search for alternate channels that may provide the conda package you're
looking for, navigate to

    https://anaconda.org

and use the search bar at the top of the page.

1 个答案:

答案 0 :(得分:0)

好的,我找到了答案:

https://anaconda.org/conda-forge/m2w64-gcc-libs

conda install -c conda-forge m2w64-gcc-libs