安装h5py库的时候,报错。
安装指令:
$ cd h5py-3.10.0
$ sudo python3 setup.py install
running install
... ...
Loading library to get build settings and version: libhdf5.so
error: Unable to load dependency HDF5, make sure HDF5 is installed properly
Library dirs checked: []
error: libhdf5.so: cannot open shared object file: No such file or directory
报错提示设备没有找到libhdf5.so。
解决办法:
sudo apt install libhdf5-dev
安装完成后再编译h5py就不会报错