Linux環境へのAnacondaインストールはWindows環境へのインストールと比べると少しだけ手間がかかる。以前もセットアップはできていたが、今回インストールに際して検索する必要はあったためメモしておく。
Anacondaダウンロード
Anaconda公式サイトからブラウザでダウンロード、または、ターミナルから同ファイルをダウンロードする。
~$wget https://repo.anaconda.com/archive/Anaconda3-2025.12-2-Linux-x86_64.sh
インストール
ダウンロードしたファイルを、bashで実行
~$bash ~/Download/Anaconda3-2025.12-2-Linux-x86_64.sh
Welcome to Anaconda3 2025.12-2
In order to continue the installation process, please review the license
agreement.
Please, press ENTER to continue
>>>
ENTERを押してインストールを進める。
>>>
By continuing installation, you hereby consent to the Anaconda Terms of Service available at https://anaconda.
com/legal.
Do you accept the license terms? [yes|no]
>>>
Anacondaの利用規約に同意するため、[yes]と入れてENTER
>>> yes
Anaconda3 will now be installed into this location:
/home/ユーザ/anaconda3
- Press ENTER to confirm the location
- Press CTRL-C to abort the installation
- Or specify a different location below
[/home/ユーザ/anaconda3] >>>
デフォルトのインストール先で問題なければそのままENTER
[/home/ユーザ/anaconda3] >>>
PREFIX=/home/ユーザ/anaconda3
Unpacking bootstrapper...
Unpacking payload...
Installing base environment...
Downloading and Extracting Packages:
## Package Plan ##
environment location: /home/ユーザ/anaconda3
added / updated specs:
- pkgs/main/linux-64::_anaconda_depends==2025.12=py313_mkl_0
- pkgs/main/linux-64::_libgcc_mutex==0.1=main
… 以下パッケージの羅列
The following NEW packages will be INSTALLED:
_anaconda_depends pkgs/main/linux-64::_anaconda_depends-2025.12-py313_mkl_0
_libgcc_mutex pkgs/main/linux-64::_libgcc_mutex-0.1-main
… 以下パッケージの羅列
Downloading and Extracting Packages:
Preparing transaction: done
Executing transaction: 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
Note: You can undo this later by running `conda init --reverse $SHELL`
Proceed with initialization? [yes|no]
[no] >>>
初期設定を実行するため[yes]を入力してENTER
>>>
[no] >>> yes
no change /home/ユーザ/anaconda3/condabin/conda
no change /home/ユーザ/anaconda3/bin/conda
no change /home/ユーザ/anaconda3/bin/conda-env
no change /home/ユーザ/anaconda3/bin/activate
no change /home/ユーザ/anaconda3/bin/deactivate
no change /home/ユーザ/anaconda3/etc/profile.d/conda.sh
no change /home/ユーザ/anaconda3/etc/fish/conf.d/conda.fish
no change /home/ユーザ/anaconda3/shell/condabin/Conda.psm1
no change /home/ユーザ/anaconda3/shell/condabin/conda-hook.ps1
no change /home/ユーザ/anaconda3/lib/python3.13/site-packages/xontrib/conda.xsh
no change /home/ユーザ/anaconda3/etc/profile.d/conda.csh
modified /home/ユーザ/.bashrc
==> For changes to take effect, close and re-open your current shell. <==
Thank you for installing Anaconda3!
ユーザ@システム名称:~$
これにてインストールは完了。ターミナルを再起動すると、(base)が追加されcondaコマンドが使えるようになる。以下はバージョン表示とAnaconda Navigatorの起動。
(base) ユーザ@システム名称:~$ conda --version
conda 25.11.1
(base) ユーザ@システム名称:~$ anaconda-navigator
2026-05-04 19:15:43,721 - WARNING linux_scaling.get_scaling_factor_using_dbus:32
An exception occurred during fetching list of system display settings.
qt.qpa.plugin: Could not find the Qt platform plugin "wayland" in ""
/home/ユーザ/anaconda3/lib/python3.13/site-packages/anaconda_navigator/widgets/tabs/home.py:260: RuntimeWarning: Failed to disconnect (None) from signal "currentIndexChanged(int)".
self.combo_environment.currentIndexChanged.disconnect()
libEGL warning: pci id for fd 13: 10de:1c82, driver (null)
pci id for fd 15: 10de:1c82, driver (null)
pci id for fd 16: 10de:1c82, driver (null)
libEGL warning: egl: failed to create dri2 screen
pci id for fd 15: 10de:1c82, driver (null)
pci id for fd 16: 10de:1c82, driver (null)
libEGL warning: egl: failed to create dri2 screen
Anaconda Navigatorショートカット作成
ターミナルからanaconda-navigatorを実行すると、ターミナルを開きっぱなしにする必要があり少々不便なので、アプリケーションメニューから“普通に”起動できるようにする。
ショートカットファイル作成
ショートカットファイル(.desktop)を作成。ターミナルまたはDolphinでフォルダに行って空ファイル作成でもOK。
~/.local/share/applications/anaconda-navigator.desktop
.desktopファイル記述内容:
[Desktop Entry]
Version=1.0
Type=Application
Name=Anaconda Navigator
Exec=/home/ユーザ/anaconda3/bin/anaconda-navigator
Icon=/home/ユーザ/anaconda3/lib/python3.13/site-packages/anaconda_navigator/static/images/common/anaconda-icon-256x256.png
Terminal=false
Categories=Development;Science;IDE;
ファイルを保存するとアプリケーション > 開発メニュー内に、「Anaconda Navigator」のショートカットが作成され、他のアプリと同じように使えるようになる。
 |
| 開発メニュー |