小编Hem*_*hCh的帖子

如何解决ImportError: libhdf5_serial.so.103: cannot open shared object file: No such file or directory while Importing h5py

我是 Linux 平台和 Raspberry Pi 的新手。我基本上是在用 Tensorflow 做一个 ML 项目。所以为了保存模型,我使用了h5py库。虽然我安装库没有问题,但在 Python 3.7 中导入时出现了巨大的导入错误

我用这个下载 pip3 install h5py

这是我运行代码后显示的导入错误 - File "<stdin>", line 1, in <module> File "/home/pi/.local/lib/python3.7/site-packages/h5py/__init__.py", line 26, in <module> from . import _errors ImportError: libhdf5_serial.so.103: cannot open shared object file: No such file or directory 因此,在看到此错误后,我在互联网上进行了大量搜索,但没有任何效果。我试过这个这个这个,甚至这个

我也安装了 sudo apt-get update sudo apt-get install libhdf5-dev sudo apt-get update sudo apt-get install libhdf5-serial-dev

但似乎没有任何效果。我该怎么办??

顺便说一句,我使用了 Raspberry Pi 3B+、Python 3.7 和 …

python linux hdf5 importerror h5py

3
推荐指数
1
解决办法
4897
查看次数

标签 统计

h5py ×1

hdf5 ×1

importerror ×1

linux ×1

python ×1