Jupyter笔记本无法导入caffe

时间:2018-05-25 10:08:04

标签: plot ipython jupyter-notebook jupyter caffe

我使用caffe,我可以运行我的python代码并成功训练网络。但是我需要在trainig期间以交互方式绘制一些图,所以我尝试使用jupyter笔记本和IPython,但jupyter无法导入caffe并引发此错误:

ImportError:libcudart.so.8.0:无法打开共享对象文件:没有这样的文件或目录

任何解决问题的建议或没有IPython的情节? 谢谢!

1 个答案:

答案 0 :(得分:0)

export PYTHONPATH="${PYTHONPATH}:/caffe/path/caffe/python"添加到~/.profile~/.bashrc~/.bash_profile文件的末尾。 将上述行添加到文件run source whichever file you have edited后。

如果您使用的是bash,则需要修改~/.bashrc,如果您要编辑MAC~/.profile

只有一个Jupyter会议

import sys caffe_root = '/home/basha/caffe/python' sys.path.insert(0,caffe_root) import caffe

相关问题