问题原因:接单独写了一个export,要么在bashrc中,要么在bash_profile中,export写在单独的一行
(1)在File Manager里面输入~/.bashrc或 ~/.bash_profile
(2)将export和后边的内容合并到一行
原始:
export
PATH = "/opt/cuda/bin:$PATH"
export
LD_LIBRARY_PATH = "/opt/cuda/lib64:$LD_LIBRARY_PATH"
修改后:
export PATH = "/opt/cuda/bin:$PATH"
export LD_LIBRARY_PATH = "/opt/cuda/lib64:$LD_LIBRARY_PATH"
(3)重新启动终端terminal
参考:https://tieba.baidu.com/p/5378909869?red_tag=0850031972