cafffe编译过程问题记录001

>>> import caffe
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/yt/caffe_fast_rcnn/python/caffe/__init__.py", line 1, in <module>
    from .pycaffe import Net, SGDSolver, NesterovSolver, AdaGradSolver, RMSPropSolver, AdaDeltaSolver, AdamSolver
  File "/home/yt/caffe_fast_rcnn/python/caffe/pycaffe.py", line 13, in <module>
    from ._caffe import Net, SGDSolver, NesterovSolver, AdaGradSolver, 
ImportError: dynamic module does not define module export function (PyInit__caffe)

系统默认python版本为3.6, caffe make时使用的python2.7,故要使用python2即可。

$ python2
Python 2.7.12 (default, Nov 20 2017, 18:23:56) 
[GCC 5.4.0 20160609] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import caffe
>>> 
原文地址:https://www.cnblogs.com/yangwithtao/p/8682047.html