import h5py ImportError: DLL load failed: the specified module could not be found
·
import h5py ImportError: DLL load failed: the specified module could not be found
问题:
import h5py
解决:
导入h5py出错,多半是在安装时出错了。
如果原本使用pip安装
pip uninstall h5py
删除之后,尝试使用conda进行安装。
conda install h5py
完整错误:
Traceback (most recent call last):
File "E:/action/machine_learning_models/test.py", line 21, in <module>
import h5py
File "D:\anaconda3\\site-packages\h5py\__init__.py", line 33, in <module>
from . import version
File "D:\anaconda3\lib\site-packages\h5py\version.py", line 15, in <module>
from . import h5 as _h5
File "h5py\h5.pyx", line 1, in init h5py.h5
ImportError: DLL load failed: 找不到指定的程序。
参考:DLL load failed(import h5py)
更多推荐

所有评论(0)