Urgent.News

What's breaking now, across thousands of outlets.

Tech

Installing Anaconda on Debian 12

Anaconda is an open-source distribution of Python and R built for data science, machine learning, and scientific computing. It bundles Conda, a package and environment manager, along with a large set of scientific libraries for processing large-scale data and running advanced computations, making it a solid platform for building machine learning models and running complex workloads on a server.…

Anaconda is an open-source Python and R distribution tailored for data science, machine learning, and scientific computing. It includes Conda, a package and environment manager, along with numerous scientific libraries designed for handling large-scale data and performing advanced computations. This guide outlines the installation process of Anaconda on Debian 12, setting up the platform for multiple users, managing Conda environments, and running Jupyter Notebook within the system.

To begin, install the necessary dependencies for Anaconda using the command: $ sudo apt-get install libgl1-mesa-glx libegl1-mesa libxrandr2 libxrandr2 libxss1 libxcursor1 libxcomposite1 libasound2 libxi6 libxtst6 -y. Next, download the latest Anaconda installer script from the Anaconda repository. For example, the latest Linux installer can be downloaded with: $ wget -O anaconda.sh https://repo.anaconda.com/archive/Anaconda3-2024.10-1-Linux-x86_64.sh

Before proceeding, verify the integrity of the downloaded installer script by generating a SHA256 hash and comparing it with the value listed in the Anaconda repository. This can be done using: $ shasum -a 256 anaconda.sh

Upon successful verification, run the installer script using Bash: $ bash anaconda.sh. Follow the prompts, press Enter when prompted to start the installation, review and accept the license agreement by pressing Enter, and confirm the installation location by pressing Enter. Accept the license terms by entering 'yes' and proceed with the installation.

Once the installation is complete, reload the shell configuration using: $ source ~/.bashrc. Confirm that your shell prompt changes to the default base Conda environment: (base) linuxuser@debian~$.

To ensure Anaconda is operational, check the installed Conda version with: $ conda --version. The output should display: conda 24.9.2. Additionally, view information about the active Conda environment, Python version, and channels using: $ conda info.

Anaconda is installed in the active user's home directory, with a default base environment. To enable multiple users to utilize Anaconda and manage Conda environments, create an anaconda group and grant it ownership of the Anaconda installation directory. Add your active user and any new users to this group using commands like: $ sudo usermod -a -G anaconda linuxuser and $ sudo usermod -a -G anaconda exampleuser.

To run Anaconda for different users, switch to their respective user accounts and activate the base Conda environment with: $ source /home/linuxuser/anaconda3/bin/activate, followed by initializing Conda with: $ conda init.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

Installing PyTorch with ROCm Acceleration on Ubuntu 24.04

PyTorch is an open-source framework for building and training machine learning models, especially deep learning networks.

  • Install PyTorch container with ROCm support on Ubuntu 24.04
  • Pull and run container with GPU access and high memory
  • Verify GPU availability in container and host environment

More from Wednesday 16 September →