Import caffe error

前端 未结 5 1396
予麋鹿
予麋鹿 2021-01-17 11:04

i compiled caffe successfully in my ubuntu machine but cannot import in python.

Caffe is installed /home/pbu/Desktop/caffe

i tried adding the /home/pbu/caffe

5条回答
  •  伪装坚强ぢ
    2021-01-17 11:36

    Adding to the above best answer. After you run make for python files by running make pycaffe where you ran your previous makes. Then you have to export that python path by running export PYTHONPATH=/python. You can choose to run this everytime before running a python code which utilizes caffe or add it to your ~/.bashrc.

提交回复
热议问题