- 第一步:找到对应的
.bashrc
文件 - 第二步:输入以下命令(该命令是切换到cuda10.2)
export PATH="/usr/local/cuda-10.2/bin:$PATH"
export LD_LIBRARY_PATH="/usr/local/cuda-10.2/lib64/:$LD_LIBRARY_PATH"
export LIBRARY_PATH="/usr/local/cuda-10.2/lib64:$LIBRARY_PATH"
export CUDA_HOME="/usr/local/cuda-10.2"