我用python3安装caffe,但是当我导入caffe时,我得到了一些错误Traceback(最近一次调用最后一次):
File "classify.py", line 14, inimport caffe File "/home/hez/caffe-master/python/caffe/__init__.py", line 1, in from .pycaffe import Net, SGDSolver File "/home/hez/caffe-master/python/caffe/pycaffe.py", line 13, in from ._caffe import Net, SGDSolver ImportError: dynamic module does not define module export function (PyInit__caffe)
但它在python2.7中运行良好.
我已经将/ path/to/caffe/distrubute/python添加到PATH,但是当我创建pycaffe时,它显示了
make: Nothing to be done for `pycaffe'.
我怎么解决这个问题?非常感谢你.
更新
Caffe支持python 3.3+.请查看安装指南和先决条件.
原始(过时)答案
当前不支持使用caffe和python 3:
Caffe的Python界面适用于Python 2.7.Python 3或更早的Pythons是你自己的冒险.
请参阅caffe的安装教程.