ImportError: dynamic module does not define init function (init_caffe)
博主在python中import caffe
时遇到报错“ImportError: dynamic module does not define init function (init_caffe)”,本文记录了解决方法。更新于2018.10.25。
Caffe报这个错误有两种原因:
第一,有可能是python的版本不对。比如在python2.7下面编译的caffe但是在python3下面运行了import caffe
命令;或者相反。
第二,检查自己是否运行了make pycaffe
命令。