How can I install the latest Anaconda with wget

64,018

Solution 1

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/

Solution 2

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

Solution 3

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

Solution 4

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

Share:
64,018

Related videos on Youtube

user1592380
Author by

user1592380

Updated on May 23, 2021

Comments