H5py import error

I am trying to import h5py to read this type of file.

Here is my code:

import h5py

file_1 = h5py.File("Out_fragment.h5py")

print file_1

      

Output:

Traceback (most recent call last):
  File "./week11.py", line 17, in <module>
    import h5py
ImportError: No module named h5py

      

I also used pip install h5py to get this module and I'm not sure why it didn't seem to be installed correctly.

Thank.

+4


source to share


2 answers


On Ubuntu. You can try the following three commands:

  • sudo pip install cython

  • sudo apt-get install libhdf5-dev

  • sudo pip install h5py



source: https://github.com/fchollet/keras/issues/3426

+6


source


For Windows, you just need to install it using the easy install feature:

pip install h5py

      



You can visit their website here: H5py

0


source







All Articles