ImportError:没有名为'h5py.tests'的模块

时间:2018-02-26 09:45:33

标签: python python-3.x h5py

无法import h5py

尝试了pip uninstall h5pypip install h5py

----> 7 import h5py
      8 import numpy as np
      9 import pandas as pd

/usr/local/envs/py3env/lib/python3.5/site-packages/h5py/__init__.py in <module>()
     60 from .version import version as __version__
     61 
---> 62 from .tests import run_tests
     63 
     64 if version.hdf5_version_tuple != version.hdf5_built_version_tuple:

ImportError: No module named 'h5py.tests'

1 个答案:

答案 0 :(得分:1)

如果您使用的是python3或更高版本,则需要运行

pip3 install h5py