在创建python虚拟环境时,突然报错:
Collecting package metadata (current_repodata.json): failed
UnavailableInvalidChannel: The channel is not accessible or is invalid.
channel name: conda-forg
channel url: https://conda.anaconda.org/conda-forg
error code: 404
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.
解决办法:
步骤1:
conda clean -i
步骤2:
conda config --remove-key channels