5

I have installed raspbian os on raspberry pi 3 model b. I have to perform a project which involves use of h5py.

The os already came preinstalled with python 2.7 and 3.5

With the help of pip, I installed h5py and it was successful, for python 3.5.

ImportError: libhdf5_serial.so.100: cannot open shared object file: No such file or directory

I don't know how to proceed with this error, can somebody please point out an appropriate way to handle this error?

jordan mark
  • 51
  • 1
  • 1
  • 3
  • 1
    As the error says, python cannot find hdf5 library. if you read http://docs.h5py.org/en/latest/build.html under "source installation" section, three requirements are mentioned. First install HDF5 library: http://depts.washington.edu/cssuwb/wiki/linux_hdf5_installation. and install h5py again. – Dinesh Feb 24 '18 at 17:18
  • A google search of your error produced this fix: https://github.com/h5py/h5py/issues/672 – RyanNerd Feb 24 '18 at 17:21

2 Answers2

16

I met the same question as yours, and I have sloved it.You can use the website below to solve your problem.
https://www.howtoinstall.co/en/debian/stretch/

Here, it is https://www.howtoinstall.co/en/debian/stretch/?condition=starts-with&search=libhdf5, and you will find these commands finally.
sudo apt-get update
sudo apt-get install libhdf5-dev
sudo apt-get update
sudo apt-get install libhdf5-serial-dev

Don't forget "sudo apt-get update"!

Besides, you can visit my blog about this problem. https://www.jianshu.com/p/8e82da85616a
emmm, it's written in Chinese, so maybe you need http://translate.google.com
In the end, don't mind my chinglish, please.

Unico
  • 437
  • 3
  • 6
4

Install all of these packages

sudo apt-get install libhdf5-dev
sudo apt-get install libhdf5-serial-dev

sudo apt-get install libcblas-dev
sudo apt-get install libatlas-base-dev
sudo apt-get install libjasper-dev 
sudo apt-get install libqtgui4 
sudo apt-get install libqt4-test

https://stackoverflow.com/a/53402396/2696230

Abdulkarim Kanaan
  • 1,625
  • 4
  • 19
  • 28