参考:https://github.com/OlafenwaMoses/ImageAI/issues/606
pip3 install 'h5py<3.0.0'
原始h5py版本过高,首先删除:
(tensorflow) D:\Projects>pip install 'h5py<3.0.0'
系统找不到指定的文件。
(tensorflow) D:\Projects>pip uninstall h5py
Found existing installation: h5py 3.1.0
Uninstalling h5py-3.1.0:
Would remove:
c:\users\zyy\anaconda3\envs\tensorflowvis\lib\site-packages\h5py-3.1.0.dist-info\*
c:\users\zyy\anaconda3\envs\tensorflowvis\lib\site-packages\h5py\*
Proceed (y/n)? y
Successfully uninstalled h5py-3.1.0
安装较低版本:
(tensorflow) D:\Projects>pip install h5py==2.10
Collecting h5py==2.10
Downloading h5py-2.10.0-cp37-cp37m-win_amd64.whl (2.5 MB)
|████████████████████████████████| 2.5 MB 1.6 MB/s
Requirement already satisfied: numpy>=1.7 in c:\us