-
Notifications
You must be signed in to change notification settings - Fork 257
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compiling from source picks up a nonexistent numpy and fails #1315
Comments
don't know why that error messages flags a non-existant numpy version. Looks like the fundamental problem is that the HDF5 library is not found. The docs describe how to tell setuptools to find the C lib dependencies, either via the nc-config utility or by setting environment variables. |
That's strange. I did export |
netcdf4-python reports a build dependency on oldest-supported-numpy Line 4 in 49dcd0b
which for python3.11 is 1.23.2 https://github.com/scipy/oldest-supported-numpy/blob/23ece5a161d5957f5142991393d2ae689ee45b9d/setup.cfg#L62 Recent pip is "helpful" and will install all build requirements specified in Also looks like it can't find the file EDIT: Just noticed 3.11 is not less than 3.9, so pip would install NumPy 2.0.0rc1: Line 5 in 49dcd0b
except the traceback reports netcdf4-python 1.6.5, not master, so the relevant file is actually Line 4 in df470a5
|
I am trying to build netCDF4 1.6.5 from source with
pip install .
. It is failing with anumpy
error, namelyWhat is baffling to me is the numpy version 1.23.2. That is not the numpy version I have installed.
I can in fact import numpy and work with numpy functions. I have scoured my system and that's the only version of numpy I have. So where is this 1.23.2 coming from, that is not letting me install netCDF4?
The text was updated successfully, but these errors were encountered: