(base) PS C:\Users\Administrator> conda config --remove channels conda-forge (base) PS C:\Users\Administrator> conda install -c anaconda scikit-learn Collecting package metadata (current_repodata.json): failed UnavailableInvalidChannel: HTTP 404 NOT FOUND for channel conda-forg <https://conda.anaconda.org/conda-forg> The channel is not accessible or is invalid. You will need to adjust your conda configuration to proceed. Use `conda config --show channels` to view your configuration's current state, and use `conda config --show-sources` to view config file locations.
时间: 2024-02-18 18:04:02 浏览: 501
conda-forge.github.io:conda-forge网站
看起来问题仍然存在。您可以尝试清空 conda 的缓存并重新设置配置:
```
conda clean --all
conda config --set channel_priority strict
conda config --add channels defaults
conda config --add channels conda-forge
conda config --add channels anaconda
```
然后再运行以下命令来安装 scikit-learn:
```
conda install scikit-learn
```
这应该会从 defaults、conda-forge 或 anaconda 频道中的一个安装 scikit-learn。如果您仍然遇到问题,请让我知道。
阅读全文