赞
踩
在终端输入:
- python
- >>>import caffe
如下图:
import caffe时:出现以下错误
>>>import caffe
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named caffe
1.在终端输入:
export PYTHONPATH=~/caffe/python #caffe的路径下面的python
但这样存在弊端,该配置只在本次添加中起作用,关掉终端后或重新打开一终端,则又失效。
因此不建议使用方法1
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。