0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

Anaconda (Miniconda) サイレントインストール (Windows)

Last updated at Posted at 2023-03-25

概要

GUIでのインストール時のオプション指定が面倒なので、サイレントインストールでAnaconda (Miniconda)をインストール

コマンド プロンプトの起動方法

  • 「Windowsキー」+ 「Rキー」でファイル名を指定して実行ウインドウを表示
  • cmd と入力して「OK」を押下
    image.png

Anacondaの場合

  • ダウンロード
curl -O https://repo.anaconda.com/archive/Anaconda3-2023.03-Windows-x86_64.exe

※最新版をインストールする場合は、ファイル名の変更が必要
最新ファイル名は下記で確認
https://repo.anaconda.com/archive/

  • インストール
start /wait "" Anaconda3-2023.03-Windows-x86_64.exe /InstallationType=JustMe /AddToPath=0 /RegisterPython=1 /S /D=%UserProfile%\Anaconda3

Minicondaの場合

  • ダウンロード
curl -O https://repo.anaconda.com/miniconda/Miniconda3-latest-Windows-x86_64.exe

※latestになっているので常に最新版がインストールされる

  • インストール
start /wait "" Miniconda3-latest-Windows-x86_64.exe /InstallationType=JustMe /AddToPath=0 /RegisterPython=1 /S /D=%UserProfile%\Miniconda3
  • Anaconda Promptの起動
%windir%\System32\cmd.exe "/K" %UserProfile%\Miniconda3\Scripts\activate.bat %UserProfile%\Miniconda3
  • Jupyter Labのインストール
conda install jupyterlab

備考

上記に記載したインストール方法はGUIで下記オプションを指定してインストールした場合と同等

  • Select Installation Type
    ※/InstallationType=JustMe
    image.png

  • Choose Install Location
    ※/D=%UserProfile%\Miniconda3
    image.png

  • Advanced Installation Options
    ※/AddToPath=0
    ※/RegisterPython=1
    image.png


参照 (公式ドキュメント)
https://docs.anaconda.com/anaconda/install/silent-mode/

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?