-
Notifications
You must be signed in to change notification settings - Fork 521
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
Install issue while building h5py (pyproject.toml) #2035
Comments
There's no pre-built package for ARM Macs yet (#2008), so pip is trying to build h5py from source, and failing to find HDF5. See also #1810, where there's a suggestion of how to make it work if you use Homebrew. |
Thanks but still not work. I try this one, unfortunately got same errors. |
What was the exact command? Where is the HDF5 library installed on that computer? |
Not installed on my mac. just try to install |
I tried these command $ pip install --no-binary=h5py h5py $ HDF5_DIR=/path/to/hdf5 pip install --no-binary=h5py h5py $ HDF5_VERSION=X.Y.Z pip install --no-binary=h5py h5py $ CC="mpicc" HDF5_MPI="ON" HDF5_DIR=/path/to/parallel-hdf5 pip install --no-binary=h5py h5py Just did all of that I can see |
The last command, the "mpicc", is not applicable to your case. If I understand correctly: (1) you installed HDF5 library on your Mac; (2) tried to install h5py using the "HDF5_DIR=..." pip command, and still got an error? What was the error? |
To be clear, you need HDF5 installed before you can build h5py from source. Where the docs have |
By default, if using formula On an m1 (arm) mac, arm homebrew's default path for hdf5 will be On an x86 mac (or using x86 brew on an arm mac), the path will be |
most forums had a different export path, this worked for me. |
It works with this tutorial on my m1 machine try it yourself. Solution here |
my 2c here (also see #2052 and #2053): just do yourself a favor and build hdf5 from source with something like,
and then you can safely install h5py like this:
Otherwise, the conda build is pretty solid and resolves all of this efficiently.
This is not the "system" python --- macos comes with pyhon2 (soon to be removed) and python3 (3.8) via xcode. |
Thank you! Everything works for me) |
I am going to close this because #2065 is merged which will build wheels for the next release and this issue can currently be fixed by installing hdf5 and a compiler on the user's machine. |
|
Great thank you so much. |
This work for me:
Almost 2nd option will resolve the issue. |
I don't even know what hdf5 is, but why don't you guys make a Mac release and spare us all the pain? I'm building a docker container on my Mac, so several of the options here are even more complicated for me. I'm pretty sure we don't need HDFS access at all, but HDF5 is unfortunately a transitive dependency that I have to live with. Please make a Mac build if you are such a low level library. Thanks! |
Try building your Docker image from the conda, miniconda, or mamba base images? Then you would have h5py for the arm64 (my guess for your Mac) architecture. P.S. HDF5 is https://www.hdfgroup.org/solutions/hdf5 |
Thanks for the suggestion. I will try that next. But this seems to have worked:
|
Hi, I was install h5py command by
pip3 install h5py
But I got error like this.
I don't know why dose happen so please help me. thank u 😄
The text was updated successfully, but these errors were encountered: