Pycaffe Installation in windows

2019-04-12 01:15发布

问题:

I had to work around with caffe in python so i tried to Build caffe for windows using opencv and vs2013 and for cpu only mode the process was sucessfull and build completed with few warnings and no Errors after that i copied the build file into lib/site packages in my anaconda package so that i will be able to use it but after that i tried to import caffe it shows error

ImportError                               Traceback (most recent call last)
<ipython-input-1-1cca3aa1f8c5> in <module>()
----> 1 import caffe

F:\python\lib\site-packages\caffe\__init__.py in <module>()
----> 1 from .pycaffe import Net, SGDSolver, NesterovSolver, AdaGradSolver, RMSPropSolver, AdaDeltaSolver, AdamSolver
      2 from ._caffe import set_mode_cpu, set_mode_gpu, set_device, Layer, get_solver, layer_type_list
      3 from .proto.caffe_pb2 import TRAIN, TEST
      4 from .classifier import Classifier
      5 from .detector import Detector

F:\python\lib\site-packages\caffe\pycaffe.py in <module>()
     11 import numpy as np
     12 
---> 13 from ._caffe import Net, SGDSolver, NesterovSolver, AdaGradSolver, \
     14         RMSPropSolver, AdaDeltaSolver, AdamSolver
     15 import caffe.io

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

Thanks for Help in Advance Can anyone get me through this error and import caffe successfully