Ask Your Question

What could be the reason behind getting an error "Collecting package metadata (current_repodata.json) failed" while trying to install packages using conda?

asked 2022-05-06 11:00:00 +0000

pufferfish gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2023-03-20 13:00:00 +0000

woof gravatar image

There are several potential reasons for this error message:

  1. Network connection issues: This error can occur if there is a problem with your internet connection or if the conda server is currently down. You can check if conda server is down at

  2. Conda environment issues: If your conda environment is outdated or not configured properly, it may fail to retrieve package metadata.

  3. Outdated conda version: If you are using an outdated version of conda, it may not be able to retrieve the current package metadata.

  4. Corrupted cache files: If the cache files used by conda to retrieve package metadata are corrupted, this error may occur.

To resolve this issue, try the following steps:

  1. Check your internet connectivity and verify the conda server is running.

  2. Update your conda environment to the latest version.

  3. Open a new terminal instance and run "conda clean -all" to clear your conda cache files.

  4. Try using conda with the "--offline" flag to try to install the packages without connecting to the internet.

  5. Try creating a new conda environment and then install the packages to isolate the issue.

If none of the above steps work, you can try uninstalling and reinstalling conda.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer

Question Tools


Asked: 2022-05-06 11:00:00 +0000

Seen: 10 times

Last updated: Mar 20 '23