我正在尝试安装sentence-transformers库。但是当我导入它时,这个错误会弹出:
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
<ipython-input-1-c9f0b8c65221> in <module>
----> 1 import h5py
~\Anaconda3\envs\custom_env\lib\site-packages\h5py\__init__.py in <module>
32 raise
33
---> 34 from . import version
35
36 if version.hdf5_version_tuple != version.hdf5_built_version_tuple:
~\Anaconda3\envs\custom_env\lib\site-packages\h5py\version.py in <module>
15
16 from collections import namedtuple
---> 17 from . import h5 as _h5
18 import sys
19 import numpy
h5py\h5.pyx in init h5py.h5()
ImportError: DLL load failed while importing defs: The specified procedure could not be found.我安装了h5py库。我遗漏了什么?
发布于 2022-01-10 09:08:02
在CUDA/CUdnn更新后,我也遇到了同样的问题,这可能会破坏一些DLL。我做了:pip uninstall h5py,它表示成功卸载以及一些错误消息。在pip install h5py之后
有时简单的解决方案是有效的。
https://stackoverflow.com/questions/69965600
复制相似问题