How to import caffe module in Python?

后端 未结 3 1205
粉色の甜心
粉色の甜心 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 04:56

    Once you have a compiled and built caffe, try

    echo 'export PYTHONPATH=/path/to/caff-dir/python'
    

    Also, you may need to run following:

    pip install -r requirement.txt
    

提交回复
热议问题