导入_caffe时DLL加载失败

2024-10-01 05:00:19 发布

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

在执行this link上的步骤后,我在安装caffe时遇到问题。 Caffé安装成功,使用了以下规范:

  • 窗口:10
  • Visual Studio:版本16 2019
  • 克马克:3.18

但是,在所用程序中导入caffe库时出现错误:

ImportError: DLL load failed while importing _caffe: The specified module could not be found.

我尝试了几种方法,例如:

  1. 为caffe依赖项和脚本添加环境路径
  2. 将python文件C:\Python38\caffe\caffe windows\python\caffe复制到python 3.8程序的环境路径以运行它

Picture of Error message and the installed path of caffe


Tags: 路径程序版本规范环境错误link步骤