title: How to solve ImportError: libhdf5_serial.so.103: cannot open shared object file: No such file or directory while Importing h5py
body: <p>I am fairly new to the Linux Platform and the Raspberry Pi. I am basically doing an ML Project with Tensorflow. So for saving the model, I am using the <strong>h5py</strong> library. Although I had no problems installing the library, I had a huge Import Error when importing it in Python 3.7</p>
  
  <p>I used this to download <code>pip3 install h5py</code></p>
  
  <p>This is the Import Error it showed after I ran the code - 
  <code>File "&lt;stdin&gt;", line 1, in &lt;module&gt;
    File "/home/pi/.local/lib/python3.7/site-packages/h5py/__init__.py", line 26, in &lt;module&gt;
      from . import _errors
  ImportError: libhdf5_serial.so.103: cannot open shared object file: No such file or directory
  </code>
  So after seeing this error I searched a lot on the internet but nothing worked for me. 
  I tried <a href="https://github.com/piwheels/piwheels/issues/75" rel="noreferrer">this</a>, <a href="https://stackoverflow.com/questions/48965309/h5py-import-error-on-libhdf5-serial-so-100">this</a>, <a href="https://blog.piwheels.org/how-to-work-out-the-missing-dependencies-for-a-python-package/" rel="noreferrer">this</a> and even <a href="https://www.codenong.com/s1190000020994149/" rel="noreferrer">this</a>.</p>
  
  <p>I also installed <code>sudo apt-get update
  sudo apt-get install libhdf5-dev
  sudo apt-get update
  sudo apt-get install libhdf5-serial-dev</code></p>
  
  <p>But nothing seems to work. What should I do??</p>
  
  <p>Btw, I used the Raspberry Pi 3B+, Python 3.7 and Raspbian.</p>