$ sudo gedit /etc/profile
添加: export PYTHONPATH=/path/to/caffe/python:$PYTHONPATH
$ source /etc/profile # 使之生效
python
import caffe
本文介绍如何通过编辑系统配置文件来设置Caffe的Python环境路径,并确保更改立即生效的方法。通过具体的步骤指导读者完成环境配置。
$ sudo gedit /etc/profile
$ source /etc/profile # 使之生效
python
import caffe
613

被折叠的 条评论
为什么被折叠?