相关疑难解决方法(0)

在OS X上安装h5py

我花了一天时间试图让h5pypython模块工作,但没有成功.我已经安装了HDF5共享库,按照我在网上找到的说明来实现它.但它不起作用,下面是我尝试将模块导入python时得到的错误消息.我尝试通过MacPorts安装,但它再次无法工作.

我正在使用32位Python27(也用于另一个模块,因此安装了i386 HDF5库...如果这是正确的?)

任何帮助非常欢迎!

谢谢 !

import h5py

Traceback (most recent call last):

File "<stdin>", line 1, in <module>

File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/h5py/__init__.py", line 1, in <module>

      from h5py import _errors

ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/h5py/_errors.so, 2): Symbol not found: _H5E_ALREADYEXISTS_g

  Referenced from: /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/h5py/_errors.so

  Expected in: flat namespace
 in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/h5py/_errors.so
Run Code Online (Sandbox Code Playgroud)

python macos import hdf5 h5py

6
推荐指数
1
解决办法
3245
查看次数

标签 统计

h5py ×1

hdf5 ×1

import ×1

macos ×1

python ×1