cannot import caffe
生活随笔
收集整理的這篇文章主要介紹了
cannot import caffe
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
遇到問題“cannot import caffe”首先make pycaffe,
如果不行,分別嘗試:
1. export PYHTONPATH=/path/to/caffe/python:$PYTHONPATH
注:以上方法只能在當前terminal中生效,如需長久生效,需修改~/.bashrc
2.?
import sys sys.path sys.path.append('/path/to/caffe/python')
如果import 不好使,考慮切換到conda下,參照我
http://blog.csdn.net/jyl1999xxxx/article/details/54965295
http://blog.csdn.net/jyl1999xxxx/article/details/53613249
而不要安裝什么imagemagick
裝了可以扔
sudo apt-get remove imagemagic*
總結
以上是生活随笔為你收集整理的cannot import caffe的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 最小二乘法原理及极值点判定
- 下一篇: 全卷积(FCN)论文阅读笔记:Fully