The Error “CondaHTTPError: HTTP 404 NOT FOUND for url https://repo.anaconda.com/pkgs/main/noarch/repodata.json.bz2”, is an error that is invoked when you are working on conda on your MacBook and are trying to create a new virtual environment for your python project by using the conda create command.
Given below is the snippet of the error you might get:
CondaHTTPError: HTTP 404 NOT FOUND for url <https://repo.anaconda.com/pkgs/main/noarch/repodata.json.bz2>
Whole error snippet is below:
CondaHTTPError: HTTP 404 NOT FOUND for url <https://repo.anaconda.com/pkgs/main/noarch/repodata.json.bz2> Elapsed: CF-RAY: The remote server could not find the noarch directory for the requested channel with url: https://repo.anaconda.com/pkgs/main As of conda 4.3, a valid channel must contain a `noarch/repodata.json` and associated `noarch/repodata.json.bz2` file, even if `noarch/repodata.json` is empty. please request that the channel administrator create `noarch/repodata.json` and associated `noarch/repodata.json.bz2` files. $ mkdir noarch $ echo '{}' > noarch/repodata.json $ bzip2 -k noarch/repodata.json You will need to adjust your conda configuration to proceed. Use `conda config --show channels` to view your configuration's current state. Further configuration help can be found at <https://conda.io/docs/config.html>. Source: StakoverFlow
The error “CondaHTTPError: HTTP 404 NOT FOUND for url https://repo.anaconda.com/pkgs/main/noarch/repodata.json.bz2” is seen because, there is no “noarch/repodata.json.bz2” file when you look at the problems for in the following URL “https://repo.anaconda.com/pkgs/main/noarch”.
Although the conda repository no longer supports it, an older version of conda needs that file.
At 2022-08-22 13:19:29 +0000, the file repodata.json.bz2 was added to the repository at https://repo.anaconda.com/pkgs/main/noarch. No need to upgrade Anaconda packages at the moment.
To fix the error, “CondaHTTPError: HTTP 404 NOT FOUND for url https://repo.anaconda.com/pkgs/main/noarch/repodata.json.bz2”, pull your repository to the mentioned date and error would be fixed.
Right now you do not need to upgrade any anaconda packages at the moment, this is because on 2022-08-22 13:19:29 +0000, the file repodata.json.bz2 was added to the repository at https://repo.anaconda.com/pkgs/main/noarch
This should help you to fix the issue, “CondaHTTPError: HTTP 404 NOT FOUND for url https://repo.anaconda.com/pkgs/main/noarch/repodata.json.bz2”.