1
我下載朱古力窗口並複製文件夾python\caffe
到我的網站,包無模塊命名_caffe。但在導入後朱古力它給了我以下錯誤:導入錯誤:在Windows 7
Traceback (most recent call last):
File "C:\Users\ag185211\Desktop\Tanmay\HappyNet-master\opencv_functions.py", line 23, in
import caffe
File "C:\Python27\lib\site-packages\caffe_init_.py", line 1, in
from .pycaffe import Net, SGDSolver, NesterovSolver, AdaGradSolver, RMSPropSolver, AdaDeltaSolver, AdamSolver, NCCL, Timer
File "C:\Python27\lib\site-packages\caffe\pycaffe.py", line 13, in
from ._caffe import Net, SGDSolver, NesterovSolver, AdaGradSolver,
ImportError: No module named _caffe
但朱古力文件夾中有_caffe.cpp folder
。我應該如何解決這個問題? 在此先感謝。
請考慮下面的[github上的項目頁面]他們構建/安裝說明(https://github.com/happynear/caffe-windows)第一。 – metatoaster
'__caffe.cpp'僅可用於C++編譯器,而不是Python。您必須編譯源代碼並正確安裝。 – cdarke
如何編譯源代碼? –