[h5py] 解决ImportError: libhdf5.so.103: cannot open shared object file: No such file or directory

安装和运行h5py遇到的问题和解决办法。
安装h5py后,导入h5py库出现如下报错信息。后来发现,这个问题也会出现在安装h5py库时。

	# python3
Python 3.7.1 | packaged by conda-forge | (default, Feb 18 2019, 01:34:39)
[GCC 7.3.0] :: Anaconda, Inc. on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import h5py
Traceback (most recent call last):
  File "", line 1, in <module>
  File "/root/archiconda3/lib/python3.7/site-packages/h5py/__init__.py", line 26, in <module>
    from . import _errors
ImportError: libhdf5.so.103: cannot open shared object file: No such file or directory

从报错信息显示,导入libhdf5.so.103库失败。只需要在linux上找到 libhdf5.so.103 文件导入/root/archiconda3/lib文件即可。
若没到libhdf5.so.103 文件,说明安装hdf5库失败,建议重装hdf5库文件。

你可能感兴趣的:([h5py] 解决ImportError: libhdf5.so.103: cannot open shared object file: No such file or directory)