ImportError: dynamic module does not define init function (init

xiaoxiao2025-08-25  128

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命令。

转载请注明原文地址: https://www.6miu.com/read-5035226.html

最新回复(0)