installation TensorFlow hour,encounter a dependency h5py,This package could not be successfully installed anyway,Error no information available:
1 |
ERROR: Could not build wheels for h5py, which is required to install pyproject.toml-based projects |
it's hard to do,Check the log and find that there is no binary package for m1,compiled automatically。But the compiler reported that the header file could not be found:
1 2 3 4 5 |
./h5py/api_compat.h:27:10: fatal error: 'hdf5.h' file not found #include "hdf5.h" ^~~~~~~~ 1 error generated. error: command '/usr/bin/clang' failed with exit code 1 |
So use brew to install the missing library,under search,Really have[……]