- 1.先输入下面这个:
-
- vim ~/.bashrc
-
- 2.再将下面这个粘贴到最后一行
-
- __conda_setup="$('/root/anaconda3/bin/conda' 'shell.bash' 'hook' 2> /dev/null)"
- if [ $? -eq 0 ]; then
- eval "$__conda_setup"
- else
- if [ -f "/root/anaconda3/etc/profile.d/conda.sh" ]; then
- . "/root/anaconda3/etc/profile.d/conda.sh"
- else
- export PATH="/root/anaconda3/bin:$PATH"
- fi
- fi
-
- 3.再输入这个:
-
- source ~/.bashrc
参考链接:【精选】ubuntu安装cuda和cudnn-CSDN博客
如果在安装过程中出现其他问题,就根据问题进行百度搜索。
-
- 1.先输入下面这个:
- vim ~/.bashrc
-
-
-
- 2.在最后粘贴下面这个内容
- __conda_setup="$('/root/anaconda3/bin/conda' 'shell.bash' 'hook' 2> /dev/null)"
- if [ $? -eq 0 ]; then
- eval "$__conda_setup"
- else
- if [ -f "/root/anaconda3/etc/profile.d/conda.sh" ]; then
- . "/root/anaconda3/etc/profile.d/conda.sh"
- else
- export PATH="/root/anaconda3/bin:$PATH"
- fi
- fi
-
- export PATH="/root/cloud_hard_drive/cuda-10.0/bin:$PATH"
- export LD_LIBRARY_PATH="/root/cloud_hard_drive/cuda-10.0/lib64:/root/cloud_hard_drive/cuda-10.0/mylib/lib64:$LD_LIBRARY_PATH"
-
-
- 3.最后输入这个
- source ~/.bashrc









