pythonwindowspiph5pypep517

Can't install h5py


I am trying to h5py on Windows10 64bit, Python 3.8.5, Pip 20.2.4.

Used this command

pip install h5py

But this throws an error

ERROR: Could not build wheels for h5py which use PEP 517 and cannot be installed directly

Looks like it's quite known issue for pep 517 and other packages, so i try to check all of the solutions like

pip install --no-use-pep517 h5py
pip install --no-binary h5py

But nothing works. How can I install h5py?


Solution

  • Found a solution - I was trying to install on Python3.8.5 32bit. Switching to 64bit just solved the issue.

    I saw that the latest version doesn't support win 32, check this: github.com/h5py/h5py/issues/1753