解决办法:
- run command
conda clean -i
to see if it works first - remove the
.condarc
file - run command
conda config --set show_channel_urls true
in anaconda prompt to regenerate the.condarc
file and then modify it
一般情况下,完成第一步可以解决大部分问题。
Important Note: If you encounter this problem, you should try running command conda clean -i first (especially when you haven’t changed anything about channels). If it doesn’t work, then you can try these steps. If you encounter this problem again after these steps, just try running command conda clean -i to see if it works. That’s all I know so far.
Reference:
[1] https://stackoverflow.com/questions/61134985/conda-install-packages-error-collecting-package-metadata-current-repodata-json