当前位置:
首页 >
cannot import caffe
发布时间:2024/9/21
33
豆豆
生活随笔
收集整理的这篇文章主要介绍了
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