我正在研究這個caffe branch,安裝後,我可以在/ caffe/build/lib中找到libcaffe.so和libcaffe.so.1.0.0-rc4。ImportError:No module named _caffe
然而,當我試圖導入朱古力,稱爲一個錯誤「導入錯誤:沒有模塊名爲_caffe」
sys.path.insert(0,CAFFE_ROOT+"/python")
import caffe
我看了一些其他注意事項有類似的問題,它說_caffe.so
應在/python
文件夾make pycaffe
後,但實際上在/python
文件夾中我能找到的任何_caffe.so
,我無法用make pycaffe
它說「no rule to make target pycaffe
」
試着去'make py'。你正在使用的Makefile應該有一個'pycaffe'的規則。 – Shai