在CentOS 8上安装Anaconda
步骤1.首先,让我们首先确保您的系统是最新的。
sudo dnf clean all
sudo dnf update
步骤2.在CentOS 8上安装Anaconda。
现在,我们下载Anaconda安装脚本:
wget -P /tmp https://repo.anaconda.com/archive/Anaconda3-2020.07-Linux-x86_64.sh
然后,使用 sha256sum:
sha256sum Anaconda3-2020.07-Linux-x86_64.sh
输出应如下所示:
46d762284d252e51cd58a8ca6c8adc9da2eadc82c342927b2f66ed011d1d8b53 /tmp/Anaconda3-2020.07-Linux-x86_64.sh
完成后,开始Anaconda安装过程:
bash Anaconda3-2020.07-Linux-x86_64.sh
现在按ENTER继续。再次按ENTER键以滚动查看Anaconda的许可证。最后,将要求您接受许可条款:
Do you approve the license terms? [yes|no]
键入是继续。然后,将要求您选择安装目录。
Type yes to continue. Then you will be asked to choose the installation directory.
Anaconda3 will now be installed into this location: /home/idroot/anaconda3 - Press ENTER to confirm the location - Press CTRL-C to abort the installation - Or specify a different location below
来源文件以激活Anaconda:~/.bashrc
source ~/.bashrc
现在,通过以下命令验证安装:
conda info
输出应如下所示:
active environment : base active env location : /home/idroot-home/anaconda3 shell level : 1 user config file : /home/idroot-home/.condarc populated config files : conda version : 4.8.13 conda-build version : 3.16.1 python version : 3.7.4.final.0 base environment : /home/idroot/anaconda3 (writable) channel URLs : https://repo.anaconda.com/pkgs/main/linux-64 https://repo.anaconda.com/pkgs/main/noarch https://repo.anaconda.com/pkgs/free/linux-64 https://repo.anaconda.com/pkgs/free/noarch https://repo.anaconda.com/pkgs/r/linux-64 https://repo.anaconda.com/pkgs/r/noarch https://repo.anaconda.com/pkgs/pro/linux-64 https://repo.anaconda.com/pkgs/pro/noarch package cache : /home/idroot/anaconda3/pkgs /home/idroot/.conda/pkgs envs directories : /home/idroot/anaconda3/envs /home/idroot/.conda/envs platform : linux-64 user-agent : conda/4.8.13 requests/2.19.1 CPython/3.7.0 Linux/3.10.0-957.1.3.el7.x86_64 centos/7 glibc/2.17 UID:GID : 0:0 netrc file : None offline mode : False
步骤3.更新Anaconda。
更新Anaconda是一个非常简单的过程,请首先使用以下方法更新conda工具:
conda update conda
更新conda后,请继续进行Anaconda更新:
conda update anaconda
恭喜你!您已经成功安装了Anaconda。感谢您使用本教程在CentOS 8系统上安装Anaconda Python。有关其他帮助或有用信息,我们建议您检查Anaconda官方网站。
原创文章,作者:校长,如若转载,请注明出处:https://www.yundongfang.com/Yun41196.html