1、首先打开清华大学开源软件镜像
Index of /anaconda/archive/ | 清华大学开源软件镜像站 | Tsinghua Open Source Mirror
选择一个安装镜像,我选择的是
Anaconda3-2022.05-Linux-x86_64.sh
在deepin桌面,单击右键选择{在终端中打开}选项,进入终端输入
wget https://mirrors.tuna.tsinghua.edu.cn/anaconda/archive/Anaconda3-2022.05-Linux-x86_64.sh
必须要这样下载,不能自己从浏览器或者下载工具下载,否则安装会报错:
Cannot open xxx/anaconda3/conda.exe or archive xxx/anaconda3/conda.exe.pkg
下载完毕,在终端输入
bash Anaconda3-2022.05-Linux-x86_64.sh
然后一直点击回车
直到界面显示END
然后点击Q键,界面显示do you accept the license terms?[yes|no]
输入yes然后单击回车,
然后询问否将Anaconda安装在当前路径下,直接回车安装在默认路径下,再点击回车进行安装。
如果之前你安装失败过,会提示如下错误,
ERROR: File or directory already exists: '/home/DF-LONG/anaconda3'
If you want to update an existing installation, use the -u option.
此时使用如下命令,重新安装软件即可
bash Anaconda3-2022.05-Linux-x86_64.sh -u
然后会显示Do you wish the installer to initialize Anacoda3
by running conda init?[yes|no]
输入yes回车
等待安装完成即可。