How to import caffe module in Python?

后端 未结 3 1208
粉色の甜心
粉色の甜心 2021-01-17 04:19

I have build .dll of _caffe.cpp on Windows (Release, x64).

I changed extension .dll to .pyd and trying to import it in python:

import caffe

  File \         


        
3条回答
  •  逝去的感伤
    2021-01-17 05:10

    For windows :

    Adding /caffe/Build/x64/Release/pycaffe to system path(path) works for me, and I think the best way to do it is :

    1. New a system variable : PYTHON_PKG = /caffe/Build/x64/Release/pycaffe;
    2. Include PYTHON_PKG in path : path = %PYTHON_PKG%; %OtherDirs%

    After I did this, I get PKG missing google.internal, then I did pip install google.internal in CMD. It works.

提交回复
热议问题