Page 1 of 1

raise DistributionNotFound(req, requirers) pkg_resources.DistributionNotFound: The 'netCDF4' distribution was not found

Posted: Thu Mar 18, 2021 3:33 am
by gaohan
Dear developers,
When I test 'yambopy' code, it encountered the following problem:

Code: Select all

aise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'netCDF4' distribution was not found and is required by yambopy
hangao@sdu-PowerEdge-R740:SAVE$ conda install netCDF4
Then I install netCDF4 using

Code: Select all

conda install netCDF4
,
It shows:

Code: Select all

Collecting package metadata (current_repodata.json): failed

CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://mirrors.bfsu.edu.cn/anaconda/pkgs/main/linux-64/current_repodata.json>
Elapsed: -

An HTTP error occurred when trying to retrieve this URL.
HTTP errors are often intermittent, and a simple retry will get you on your way.
'https://mirrors.bfsu.edu.cn/anaconda/pkgs/main/linux-64'
I'm a freshman in Linux and Python. Could you help me solve this problem?
Looking forward to your reply !

Re: raise DistributionNotFound(req, requirers) pkg_resources.DistributionNotFound: The 'netCDF4' distribution was not fo

Posted: Thu Mar 18, 2021 10:05 am
by palful
Hi Han,
Collecting package metadata (current_repodata.json): failed

CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://mirrors.bfsu.edu.cn/anaconda/pk ... odata.json>
Elapsed: -

An HTTP error occurred when trying to retrieve this URL.
HTTP errors are often intermittent, and a simple retry will get you on your way.
'https://mirrors.bfsu.edu.cn/anaconda/pkgs/main/linux-64'
This looks like a conda error in downloading the netcdf package.
I assume that if you try again as it suggests the results don't change, right?
Also, check that your python version is 3.x.

Does this error occur just for netCDF4 of for any package you try to install with conda?

Most of the instances I found online about CondaHTTPError are related to usage on a Windows machine rather than a Linux system, but maybe these links can help you anyway:
https://github.com/conda/conda/issues/8046
https://github.com/conda/conda/issues/9555
https://forum.qiime2.org/t/condahttperr ... ailed/3317

Cheers,
Fulvio