安装h5py时出现问题:无法加载依赖项HDF5,找不到模块“HDF5.dll”

2024-03-28 13:48:30 发布

您现在位置:Python中文网/ 问答频道 /正文

当我尝试使用“pip install h5py”安装h5py时 ,我得到这个错误:

Loading library to get build settings and version: hdf5.dll error: Unable to load dependency HDF5, make sure HDF5 is installed properly
error: Could not find module 'hdf5.dll' (or one of its dependencies). Try using the full path with constructor syntax.

ERROR: Failed building wheel for h5py Failed to build h5py ERROR: Could not build wheels for h5py which use PEP 517 and cannot be installed directly

  • 我尝试了“pip安装--升级setuptools”和“pip安装--升级setuptools--忽略已安装”,这是我的问题
  • 我还试图降低pip的评级,但没有解决问题。 我使用python 3.8

提前谢谢你


Tags: pipinstalledandtobuildfornoterror