How to install h5py (needed for Keras) on MacOS with M1?

We Are Going To Discuss About How to install h5py (needed for Keras) on MacOS with M1?. So lets Start this Python Article.

How to install h5py (needed for Keras) on MacOS with M1?

  1. How to solve How to install h5py (needed for Keras) on MacOS with M1?

    This works for me:
    $ brew install hdf5 $ export HDF5_DIR="$(brew --prefix hdf5)" $ pip install --no-binary=h5py h5py

  2. How to install h5py (needed for Keras) on MacOS with M1?

    This works for me:
    $ brew install hdf5 $ export HDF5_DIR="$(brew --prefix hdf5)" $ pip install --no-binary=h5py h5py

Solution 1

This works for me:

$ brew install hdf5
$ export HDF5_DIR="$(brew --prefix hdf5)"
$ pip install --no-binary=h5py h5py

Original Author user15990707 Of This Content

Solution 2

Try to install h5py using conda. Works for me.

conda install h5py

Original Author Vasantharajan Charangan Of This Content

Conclusion

So This is all About This Tutorial. Hope This Tutorial Helped You. Thank You.

Also Read,

ittutorial team

I am an Information Technology Engineer. I have Completed my MCA And I have 4 Year Plus Experience, I am a web developer with knowledge of multiple back-end platforms Like PHP, Node.js, Python and frontend JavaScript frameworks Like Angular, React, and Vue.

Leave a Comment