How can I install the latest Anaconda with wget

You can write the following bash script to automate the installing process.

cd ~

wget https://repo.continuum.io/archive/Anaconda3-2020.11-Linux-x86_64.sh
bash Anaconda3-2020.11-Linux-x86_64.sh -b -p ~/anaconda3
rm Anaconda3-2020.11-Linux-x86_64.sh
echo 'export PATH="~/anaconda3/bin:$PATH"' >> ~/.bashrc 

# Reload default profile
conda init

source ~/.bashrc


wget just downloads the file...

for python 2.7 :

wget https://repo.continuum.io/archive/Anaconda2-2018.12-Linux-x86_64.sh

for python3.X:

wget https://repo.continuum.io/archive/Anaconda3-2018.12-Linux-x86_64.sh

This is a shell script that guides you though the install.

Run the following line inside of the folder of the downloaded file to start the guided install...

for python 2.7:

bash Anaconda2-2018.12-Linux-x86_64.sh

for Python 3.X:

bash Anaconda3-2018.12-Linux-x86_64.sh

Check latest repos or if you want any specific version here: https://repo.continuum.io/archive/


This will download the latest anaconda version from scraping the html from the website:

wget -O - https://www.anaconda.com/distribution/ 2>/dev/null | sed -ne 's@.*\(https:\/\/repo\.anaconda\.com\/archive\/Anaconda3-.*-Linux-x86_64\.sh\)\">64-Bit (x86) Installer.*@\1@p' | xargs wget

This gets you the latest miniconda 3 for 64bit Linux environments:

  1. download the software with wget
  2. assign execution rights
  3. execute and follow the instructions
  4. load .bashrc to update PATH environment variable
  5. update conda
  6. install pip
  7. create an enviroment

...

wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh
chmod +x Miniconda3-latest-Linux-x86_64.sh
./Miniconda3-latest-Linux-x86_64.sh
source ~/.bashrc

# now update conda and install pip
conda update conda
conda install pip

# (optional) create and activate an environment
conda create -n py3 python pandas scikit-learn jupyter
source activate py3