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 you can use the website below to solve it: https://www.howtoinstall.co/en/debian/stretch/

In generally, you will find these commands similarly.

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

Besides, you can visit my blog about this problem. It's written in Chinese, so maybe you need http://translate.google.com

Unico
  • 607
  • 5
  • 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,703
  • 4
  • 20
  • 32