Ubuntu installs Anaconda

2021-12-20
#Unix #Python #Ubuntu

1. Introduction

In short, Anaconda is a Python manager, it can provide different Python versions.

2. Steps

2.1 Download

At https://www.anaconda.com/products/individual, download the Linux Python 3.9 64-Bit (x86) Installer (581 MB) file, the actual link for Ubuntu is:

https://repo.anaconda.com/archive/Anaconda3-2021.11-Linux-x86_64.sh

The general link is https://repo.anaconda.com/archive/, just search the newest version for Linux.

2.2 Install

The command is:

sh Anaconda3-2021.11-Linux-x86_64.sh

2.3 Test

The installation is successful as:

Thank you for installing Anaconda3!
$ conda -V
conda 4.10.3

2.4 Add to bashrc

Open bashrc:

sudo gedit ~/.bashrc

Add the content:

export PATH="/home/deng/anaconda3/bin:$PATH"

Source the bashrc:

source ~/.bashrc