目的および背景
Linux上でAnaconda3を稼働した時のメモです。
手順
Anaconda3をインストール
https://www.anaconda.com アクセスし、Linux版パッケージをダウンロードします。
※Anaconda3-2024.02-1-Linux-x86_64.sh 2024年6月24日
ダウンロードしたインストーラーを任意のディレクトリに配置して、インストールを実行します。
$ bash Anaconda3-2024.02-1-Linux-x86_64.sh
Welcome to Anaconda3 2024.02-1
In order to continue the installation process, please review the license
agreement.
Please, press ENTER to continue
>>>
Enterを入力すると、END USER LICENSE AGREEMENT が表示されますので、「Do you accept the license terms? [yes|no]」が表示されるまでEnterを続けて入力します。
END USER LICENSE AGREEMENT
This Anaconda End User License Agreement ("EULA") is between Anaconda, Inc., ("Anaconda"), and you ("You" or
"Customer"), the individual or entity acquiring and/or providing access to the Anaconda On-Premise Products. The EULA
governs your on-premise access to and use of Anaconda's downloadable Python and R distribution of conda, conda-build,
Python, and over 200 open-source scientific packages and dependencies ("Anaconda Distribution"); Anaconda's data science
and machine learning platform (the "Platform"); and Anaconda's related Software, Documentation, Content, and other
related desktop services, including APIs, through which any of the foregoing are provided to You (collectively, the
"On-Premise Products"). Capitalized terms used in these EULA and not otherwise defined herein are defined at
https://legal.anaconda.com/policies/en/?name=anaconda-legal-definitions.
(途中、省略)
Do you accept the license terms? [yes|no]
>>>
「yes」を入力するとAnacondaをインストールされる場所が表示されます。そのまま変更しない場合はEnterを入力します。
Anaconda3 will now be installed into this location:
/home/noriko/anaconda3
- Press ENTER to confirm the location
- Press CTRL-C to abort the installation
- Or specify a different location below
[/home/noriko/anaconda3] >>>
インストールが開始され、「You can undo this by running conda init --reverse $SHELL
? [yes|no]」が表示されたら何も入力せずEnterします。自動的にcondaのbase環境を起動する場合は「yes」を入力します。
PREFIX=/home/noriko/anaconda3
Unpacking payload ...
Installing base environment...
Downloading and Extracting Packages:
Downloading and Extracting Packages:
Preparing transaction: done
Executing transaction: /
Installed package of scikit-learn can be accelerated using scikit-learn-intelex.
More details are available here: https://intel.github.io/scikit-learn-intelex
For example:
$ conda install scikit-learn-intelex
$ python -m sklearnex my_application.py
done
installation finished.
Do you wish to update your shell profile to automatically initialize conda?
This will activate conda on startup and change the command prompt when activated.
If you'd prefer that conda's base environment not be activated on startup,
run the following command when conda is activated:
conda config --set auto_activate_base false
You can undo this by running `conda init --reverse $SHELL`? [yes|no]
[no] >>> yes
==> For changes to take effect, close and re-open your current shell. <==
Thank you for installing Anaconda3!
参照
以下のページを参考にさせていただきました。