无法import h5py
。
尝试了pip uninstall h5py
和pip 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'
答案 0 :(得分:1)
如果您使用的是python3或更高版本,则需要运行
pip3 install h5py