caffe-windows icon indicating copy to clipboard operation
caffe-windows copied to clipboard

DLL load failed: 找不到指定的模块

Open louisWangql opened this issue 7 years ago • 7 comments

Hi,happynear: I have a question: Traceback (most recent call last): File "", line 1, in File "C:\Program Files\Anaconda3\lib\site-packages\caffe_init_.py", line 1, in from .pycaffe import Net, SGDSolver, NesterovSolver, AdaGradSolver, RMSPropS olver, AdaDeltaSolver, AdamSolver, NCCL, Timer File "C:\Program Files\Anaconda3\lib\site-packages\caffe\pycaffe.py", line 13, in from ._caffe import Net, SGDSolver, NesterovSolver, AdaGradSolver,
ImportError: DLL load failed: 找不到指定的模块。 what should i do?Thanks!

louisWangql avatar Aug 23 '17 12:08 louisWangql

I have the same questions to ask. I beg a solution. Thank you!

wucs0329 avatar Aug 29 '17 17:08 wucs0329

when I execute the command,"import caffe" in Anaconda3, the problem will show.

wucs0329 avatar Aug 29 '17 17:08 wucs0329

i have the same problem .....

anandkoirala avatar Sep 21 '17 02:09 anandkoirala

just copy all .dll files in thirdparty/bins folder into site-packages/caffe folder and restart python make sure there are vcruntime*.dll and all hdf5 dll files used in the build phase, including the nccl.dll if you are using multi gpu support

maxteleg avatar Apr 09 '18 04:04 maxteleg

@maxteleg I try your method, but the problem still exists. Traceback (most recent call last): File "", line 1, in File "d:\ProgramData\Anaconda3\envs\caffe27\lib\site-packages\caffe_init_.py", line 1, in from .pycaffe import Net, SGDSolver, NesterovSolver, AdaGradSolver, RMSPropSolver, AdaDeltaSolver, AdamSolver, NCCL, Timer File "d:\ProgramData\Anaconda3\envs\caffe27\lib\site-packages\caffe\pycaffe.py", line 13, in from ._caffe import Net, SGDSolver, NesterovSolver, AdaGradSolver,
ImportError: DLL load failed: 找不到指定的模块。

angleboy8 avatar Jan 15 '19 14:01 angleboy8

I use CUDA 10.0, VS 2015, PYTHON 2.7. In addtion, Python 3.5 is the same as that. Do you have a better resolution. Please inform me.

angleboy8 avatar Jan 15 '19 14:01 angleboy8

@angleboy8 Hi, I've switched to Tensorflow and not been using Caffe for almost a year, so I can only answer your issue based on my memory. So there would be some mistakes, but I think you can get a brief picture about this. you may want to try adding anaconda/Library/bin/ to your system path, if the error still occurs, you can add folder which contains a python27.dll to system path. Also notice that, in your anaconda/env/caffe27 folder, there is also a "Library/bin" folder contains all dlls needed for your python2.7 environment.

maxteleg avatar Jan 18 '19 11:01 maxteleg