我不能在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
。但是,我找不到路。在
试着简单地运行
pip install h5py
。在我这样做了,并且能够在翻译程序中
import h5py
而没有任何麻烦。在相关问题 更多 >
编程相关推荐