CentOS Stream 8にAnacondaをインストールする

環境
OSバージョンの確認
# cat /etc/redhat-release
CentOS Stream release 8

インストールの方法
1.Anacondaのダウンロード
# mkdir -p /opt/anaconda
# cd /opt/anaconda/

# wget https://repo.anaconda.com/archive/Anaconda3-2021.11-Linux-x86_64.sh
# ls
Anaconda3-2021.11-Linux-x86_64.sh

2.ダウンロードしたAnacondaをインストールします

# bash Anaconda3-2021.11-Linux-x86_64.sh

Welcome to Anaconda3 2021.11

In order to continue the installation process, please review the license
agreement.
Please, press ENTER to continue
>>>  #ENTERを入力
略
Please answer 'yes' or 'no':'
>>> yes
Anaconda3 will now be installed into this location:
/root/anaconda3

  - Press ENTER to confirm the location
  - Press CTRL-C to abort the installation
  - Or specify a different location below

[/root/anaconda3] >>>   #ENTERを入力
略
installation finished.
Do you wish the installer to initialize Anaconda3
by running conda init? [yes|no]
[no] >>>   #yesを入力

3.インストールが完了すると以下の画面が表示されます。

==> For changes to take effect, close and re-open your current shell. <==

If you'd prefer that conda's base environment not be activated on startup,
   set the auto_activate_base parameter to false:

conda config --set auto_activate_base false

Thank you for installing Anaconda3!

略

4.Anacondaを実行します

[root@localhost anaconda]# su - ${USER}
(base) [root@localhost ~]# conda info

     active environment : base
    active env location : /root/anaconda3
            shell level : 1
       user config file : /root/.condarc
 populated config files :
          conda version : 4.10.3
    conda-build version : 3.21.5
         python version : 3.9.7.final.0
             略

 

CentOS Stream 8

Posted by arkgame