import h5py occurrs“库未加载”

2024-10-02 22:30:13 发布

您现在位置:Python中文网/ 问答频道 /正文

我不能在OSX 10.8上导入h5py。我的/usr/local/lib中没有{}。在

>>> import h5py
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/sudou/.pyenv/versions/anaconda-2.0.1/lib/python2.7/site-packages/h5py/__init__.py", line 13, in <module>
    from . import _errors
ImportError: dlopen(/Users/sudou/.pyenv/versions/anaconda-2.0.1/lib/python2.7/site-packages/h5py/_errors.so, 2): Library not loaded: libhdf5.7.dylib
  Referenced from: /Users/sudou/.pyenv/versions/anaconda-2.0.1/lib/python2.7/site-packages/h5py/_errors.so
  Reason: image not found

我已经安装了hdf5,可能需要降级hdf5。但是,我找不到路。在

^{pr2}$

Tags: inimportpyenvlibpackageslinesiteanaconda