ImportError: libhdf5_serial.so.100: cannot open shared

玩树莓派装完 opencv-contrib-python
import cv2碰见这种问题:

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

如今作为老鸟的我,看到这种问题已经不慌了哈哈哈哈,直接GOOGLE......,况且No such file or directory有啥可怕的?没有就下载呗!

1
2
3
4
5
6
7
8
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

最后随手sudo apt-get upgrade

参考自:https://stackoverflow.com/questions/48965309/h5py-import-error-on-libhdf5-serial-so-100