from .pycaffe import Net, SGDSolver, NesterovSolver, AdaGradSolver, RMSPropSolver, AdaDeltaSolver,

 from .pycaffe import Net, SGDSolver, NesterovSolver, AdaGradSolver, RMSPropSolver, AdaDeltaSolver,\

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


如果在命令行下操作:

activate python3.6

python

import caffe

会报如下错误: 

import caffe

Traceback (most recent call last):
  File "", line 1, in
  File "C:\Anaconda2\lib\site-packages\caffe\__init__.py", line 1, in
    from .pycaffe import Net, SGDSolver, NesterovSolver, AdaGradSolver, RMSPropSolver, AdaDeltaSolver, AdamSolver
  File "C:\Anaconda2\lib\site-packages\caffe\pycaffe.py", line 15, in
    import caffe.io
  File "C:\Anaconda2\lib\site-packages\caffe\io.py", line 2, in
    import skimage.io
  File "C:\Anaconda2\lib\site-packages\skimage\io\__init__.py", line 7, in
    from .manage_plugins import *
  File "C:\Anaconda2\lib\site-packages\skimage\io\manage_plugins.py", line 28, in
    from .collection import imread_collection_wrapper
  File "C:\Anaconda2\lib\site-packages\skimage\io\collection.py", line 12, in
    from PIL import Image
  File "C:\Anaconda2\lib\site-packages\PIL\Image.py", line 57, in
    from . import _imaging as core

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

经过错误导引,结果在 from . import _imaging as core 有错误

在%Anaconda2\Lib\site-packages\PIL路径下,明显有_imaging.pyd,  但是这样到导出还是有错误

解决方法,卸载pillow,重新安装:

pip uninstall pillow

pip install Pillow

注意大小写。


你可能感兴趣的:(caffe)