Anaconda is a popular open-source distribution of Python and R programming languages, widely used for data science, machine learning, and scientific computing. It includes conda, a powerful package manager and environment manager, along with hundreds of pre-installed scientific packages.
Important
On Debian (versions 11 and 12), you’ll first need to resolve locale issues—specifically the error: "Falling back to the standard locale ("C")." You can fix this by following our guide.
1. Update the System
It's always a good idea to update your package index before installing anything new:
apt update && apt upgrade -y
apt install curl wget -y
2. Download the Latest Anaconda Installer
Navigate to the /tmp directory and download the latest version of the Anaconda installer:
cd /tmp
wget https://repo.anaconda.com/archive/Anaconda3-2024.10-1-Linux-x86_64.sh
Please note: You can check for the most recent version at Anaconda’s official archive.
3. Verify the Installer (Optional but Recommended)
To verify the integrity of the downloaded file, check its SHA256 hash:
sha256sum Anaconda3-2024.10-1-Linux-x86_64.sh
Compare the output with the official hash from the Anaconda download page.
4. Run the Installer
Start the installation script using the following command:
bash Anaconda3-2024.10-1-Linux-x86_64.sh
Follow the prompts:
Press Enter to scroll through the license agreement.
Type yes to accept the license.
Press Enter to install in the default directory (/home/youruser/anaconda3) or specify a custom location.
When asked to run conda init, type yes.
5. Activate Anaconda
After installation, activate Anaconda by reloading your shell configuration:
source ~/.bashrc
6. Verify the Installation
Check if Conda was installed correctly:
conda info
You should see detailed information about your Conda installation.
Optional: Update Conda
To ensure you are using the latest Conda version:
conda update conda
conda update --all
Important: Do not use sudo with Conda commands.