CentOS8.3にAnacondaをインストールする方法

OSバージョン確認
# cat /etc/redhat-release
CentOS Linux release 8.3.2011
1.Anacondaダウンロード
# cd /usr/local/src
# wget https://repo.anaconda.com/archive/Anaconda3-2020.11-Linux-x86_64.sh
2.Anacondaインストール
# bash Anaconda3-2020.11-Linux-x86_64.sh

Welcome to Anaconda3 2020.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
略
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.インストールの確認

# 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.9.2
   conda-build version : 3.20.5
        python version : 3.8.5.final.0
      virtual packages : __glibc=2.28=0
                         __unix=0=0
                         __archspec=1=x86_64
      base environment : /root/anaconda3  (writable)
          channel URLs : https://repo.anaconda.com/pkgs/main/linux-64
                         https://repo.anaconda.com/pkgs/main/noarch
                         https://repo.anaconda.com/pkgs/r/linux-64
                         https://repo.anaconda.com/pkgs/r/noarch
         package cache : /root/anaconda3/pkgs
                         /root/.conda/pkgs
      envs directories : /root/anaconda3/envs
                         /root/.conda/envs
              platform : linux-64
            user-agent : conda/4.9.2 requests/2.24.0 CPython/3.8.5 Linux/4.18.0-240.10.1.el8_3.x86_64 centos/8.3.2011 glibc/2.28
               UID:GID : 0:0
            netrc file : None
          offline mode : False

(base) [root@localhost ~]# python

Python 3.8.5 (default, Sep  4 2020, 07:30:14)
[GCC 7.3.0] :: Anaconda, Inc. on linux
Type "help", "copyright", "credits" or "license" for more information.
>>>

 

CentOS

Posted by arkgame