导入错误:没有名为 'h5py.tests' 的模块



无法 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'

如果您使用的是python3或以上,则需要运行

pip3 install h5py

最新更新