Installing in silent mode¶
Windows¶
Download the installer:
Note
The following instructions are for Miniconda. For Anaconda,
substitute Anaconda
for Miniconda
in all of the commands.
To run the the Windows installer for Miniconda in
silent mode, use the /S
argument. The following optional arguments are supported:
/InstallationType=[JustMe|AllUsers]
—Default isJustMe
./AddToPath=[0|1]
—Default is1
/RegisterPython=[0|1]
—Make this the system’s default Python.0
indicatesJustMe
, which is the default.1
indicatesAllUsers
./S
—Install in silent mode./D=<installation path>
—Destination installation path. Must be the last argument. Do not wrap in quotation marks. Required if you use/S
.
All arguments are case-sensitive.
EXAMPLE: The following command installs Miniconda for the current user without registering Python as the system’s default:
start /wait "" Miniconda3-latest-Windows-x86_64.exe /InstallationType=JustMe /RegisterPython=0 /S /D=%UserProfile%\Miniconda3
Linux & macOS¶
Note
The following instructions are for Miniconda. For Anaconda,
substitute anaconda
for miniconda
in all of the commands.
Also, substitute the Anaconda installer
for the Miniconda installer in the wget step.
To run the silent installation of Miniconda for macOS or Linux, specify the -b and -p arguments of the bash installer. The following arguments are supported:
- -b—Batch mode with no PATH modifications to
~/.bashrc
. Assumes that you agree to the license agreement. Does not edit the.bashrc
or.bash_profile
files. - -p—Installation prefix/path.
- -f—Force installation even if prefix -p already exists.
EXAMPLE:
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O ~/miniconda.sh
bash ~/miniconda.sh -b -p $HOME/miniconda
The installer will not prompt you for anything, including setup of your shell to activate conda. To add this activation in your current shell session:
eval "$(/Users/jsmith/anaconda/bin/conda shell.YOUR_SHELL_NAME hook)"
With this activated shell, you can then install conda’s shell functions for easier access in the future:
conda init
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