happynear / caffe-windows

Configure Caffe in one hour for Windows users.
Other
1.32k stars 650 forks source link

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

Open louisWangql opened 6 years ago

louisWangql commented 6 years ago

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!

wucs0329 commented 6 years ago

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

wucs0329 commented 6 years ago

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

anandkoirala commented 6 years ago

i have the same problem .....

maxteleg commented 6 years ago

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

angleboy8 commented 5 years ago

@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 commented 5 years ago

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.

maxteleg commented 5 years ago

@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.