打开~/.bashrc
vim ~/.bashrc
按下键到最后,按i
添加环境变量:
export LD_LIBRARY_PATH=/usr/local/cuda/lib
export PATH=$PATH:/usr/local/cuda/bin
按Esc
结束输入
输入:wq
保存并退出
最后更新一下
source ~/.bashrc
打开~/.bashrc
vim ~/.bashrc
按下键到最后,按i
添加环境变量:
export LD_LIBRARY_PATH=/usr/local/cuda/lib
export PATH=$PATH:/usr/local/cuda/bin
按Esc
结束输入
输入:wq
保存并退出
最后更新一下
source ~/.bashrc