我在我的 ubuntu 机器上成功编译了 caffe,但无法在 python 中导入。
Caffe 安装在 /home/pbu/Desktop/caffe
我尝试将 /home/pbu/caffe/python 路径添加到 sys.path.append,仍然无法正常工作
我正在尝试导入 caffe
root@pbu-OptiPlex-740-Enhanced:/home/pbu/Desktop# python ./caffe/output.py
Traceback (most recent call last):
File "./caffe/output.py", line 13, in <module>
import caffe
File "/home/pbu/Desktop/caffe/python/caffe/__init__.py", line 1, in <module>
from .pycaffe import Net, SGDSolver
File "/home/pbu/Desktop/caffe/python/caffe/pycaffe.py", line 10, in <module>
from ._caffe import Net, SGDSolver
ImportError: No module named _caffe