pycharm中h5py安装问题(安装失败ModuleNotFoundError: No module named ‘h5py‘)

操作系统和版本

Win10

Python版本

Python3.9

尝试过的解决方法

前段时间还好好的,怀疑是不是版本不兼容了,有无大佬帮忙看看

命令行显示已安装

pip install h5py
Requirement already satisfied: h5py in e:\anaconda\content\lib\sit
e-packages (2.10.0)
Requirement already satisfied: six in e:\anaconda\content\lib\site-packages (from h5py) (1.15.0)
Requirement already satisfied: numpy>=1.7 in e:\anaconda\content\lib\site-packages (from h5py) (1.20.1)

无法导入,在python interpreter尝试安装但报错
报错信息:
Collecting h5py
Using cached h5py-3.6.0.tar.gz (384 kB)
Installing build dependencies: started
Installing build dependencies: finished with status ‘done’
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status ‘done’
Preparing metadata (pyproject.toml): started
Preparing metadata (pyproject.toml): finished with status ‘done’
Requirement already satisfied: numpy>=1.14.5 in c:\users\loujiazheng00\appdata\local\programs\python\python39-32\lib\site-packages (from h5py) (1.21.4)
Building wheels for collected packages: h5py
Building wheel for h5py (pyproject.toml): started
Building wheel for h5py (pyproject.toml): finished with status ‘error’
Failed to build h5py

error: subprocess-exited-with-error

Building wheel for h5py (pyproject.toml) did not run successfully.
exit code: 1

[9 lines of output]
running bdist_wheel
running build
running build_py
warning: build_py: byte-compiling is disabled, skipping.

running build_ext
Loading library to get build settings and version: hdf5.dll
error: Unable to load dependency HDF5, make sure HDF5 is installed properly
error: [WinError 193] %1 不是有效的 Win32 应用程序。
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for h5py
ERROR: Could not build wheels for h5py, which is required to install pyproject.toml-based projects

其他

也尝试使用wheel来安装,还是无功而返,试着在命令行中安装了HDF5,但是我不清楚是不是正确的安装方式…另外我在anaconda的jupyter中可以运行