导入H5PY“未定义的符号:H5FD_mpio_init”时出错

时间:2015-04-03 16:24:26

标签: python linux hdf5 h5py

我已安装H5PY,但在尝试导入h5py模块时,出现此错误:

>>> import h5py
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/matteo/Downloads/h5py-2.4.0/build/lib.linux-x86_64-2.7/h5py/__init__.py", line 16, in <module>
    from h5py import h5a, h5d, h5ds, h5f, h5fd, h5g, h5r, h5s, h5t, h5p, h5z
  File "build/bdist.linux-x86_64/egg/h5py/h5f.py", line 7, in <module>
  File "build/bdist.linux-x86_64/egg/h5py/h5f.py", line 6, in __bootstrap__
  File "h5py/h5f.pyx", line 26, in init h5py.h5f (/home/matteo/Downloads/h5py-2.4.0/h5py/h5f.c:5160)
  File "build/bdist.linux-x86_64/egg/h5py/h5fd.py", line 7, in <module>
  File "build/bdist.linux-x86_64/egg/h5py/h5fd.py", line 6, in __bootstrap__
ImportError: /home/matteo/.python-eggs/h5py-2.4.0-py2.7-linux-x86_64.egg-tmp/h5py/h5fd.so: undefined symbol: H5FD_mpio_init

然后,如果我再次尝试导入h5py,我会收到不同的错误

>>> import h5py
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/matteo/Downloads/h5py-2.4.0/build/lib.linux-x86_64-2.7/h5py/__init__.py", line 10, in <module>
from h5py import _errors
ImportError: cannot import name _errors

我所在的目录与安装目录不同。 你能救我吗?

0 个答案:

没有答案