How to install Anaconda on Debian 12
- 00:32 lsb_release -a
- 00:41 cd /tmp/
- 00:49 curl -O https://repo.anaconda.com/archive/Anaconda3-2021.05-Linux-x86_64.sh
- 01:19 bash Anaconda3-2021.05-Linux-x86_64.sh
- 02:07 source ~/anaconda3/bin/activate
- 02:27 conda list
- 02:41 conda create --name my_env python=3
- 03:19 conda activate my_env
- 03:36 python --version
To Install Anaconda On Debian 12
Introduction
Anaconda is an open-source package manager, environment manager, and distribution of the Python and R programming languages that are designed for data science and machine learning workflows. It has been used for large-scale data processing, scientific computing, and predictive analytics.
Procedure
Step 1: Check the OS version by using the below command
root@linuxhelp:~# lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 12 (bookworm)
Release: 12
Codename: bookworm
Step 2: Change to the ‘tmp’ directory by using the below command
root@linuxhelp:~# cd /tmp/
Step 3: Download the Anaconda Script file to install Anaconda by using the below command
root@linuxhelp:/tmp# curl -O https://repo.anaconda.com/archive/Anaconda3-2021.05-Linux-x86_64.sh
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 544M 100 544M 0 0 31.7M 0 0:00:17 0:00:17 --:--:-- 31.6M
Step 4: Install Anaconda by Bash script file using the below command
root@linuxhelp:/tmp# bash Anaconda3-2021.05-Linux-x86_64.sh
Welcome to Anaconda3 2021.05
Step 5: Press Enter to continue installation by using the below command
In order to continue the installation process, please review the license
agreement.
Please, press ENTER to continue
>>>
===================================
End User License Agreement - Anaconda Individual Edition
===================================
Copyright 2015-2021, Anaconda, Inc.
All rights reserved under the 3-clause BSD License:
This End User License Agreement (the "Agreement") is a legal agreement between you and Ana
conda, Inc. ("Anaconda") and governs your use of Anaconda Individual Edition (which was fo
rmerly known as Anaconda Distribution).
Step 6: Give Yes to Accept the license agreement
Do you accept the license terms? [yes|no]
[no] >>> yes
Step 7: Press ENTER to confirm the installation location for Anaconda
Anaconda3 will now be installed into this location:
/root/anaconda3
- Press ENTER to confirm the location
- Press CTRL-C to abort the installation
- Or specify a different location below
[/root/anaconda3] >>>
PREFIX=/root/anaconda3
Unpacking payload ...
Collecting package metadata (current_repodata.json): done
Solving environment: done
Preparing transaction: done
Executing transaction: done
installation finished.
Step 8: Initialize the Installed Application by entering Yes
Do you wish the installer to initialize Anaconda3
by running conda init? [yes|no]
[no] >>> yes
no change /root/anaconda3/condabin/conda
no change /root/anaconda3/bin/conda
no change /root/anaconda3/bin/conda-env
no change /root/anaconda3/bin/activate
no change /root/anaconda3/bin/deactivate
no change /root/anaconda3/etc/profile.d/conda.sh
no change /root/anaconda3/etc/fish/conf.d/conda.fish
no change /root/anaconda3/shell/condabin/Conda.psm1
no change /root/anaconda3/shell/condabin/conda-hook.ps1
no change /root/anaconda3/lib/python3.8/site-packages/xontrib/conda.xsh
no change /root/anaconda3/etc/profile.d/conda.csh
modified /root/.bashrc
Step 9: Complete the installation by using the below command
root@linuxhelp:/tmp# source ~/anaconda3/bin/activate
Step 10: Test the installation by running the ‘conda’ command
(base) root@linuxhelp:/tmp# conda list
# packages in environment at /root/anaconda3:
#
# Name Version Build Channel
_ipyw_jlab_nb_ext_conf 0.1.0 py38_0
Step 11: Create an Environment named my_env
(base) root@linuxhelp:/tmp# conda create --name my_env python=3
Collecting package metadata (current_repodata.json): done
Solving environment: done
==> WARNING: A newer version of conda exists. <==
current version: 4.10.1
latest version: 23.9.0
Please update conda by running
$ conda update -n base -c defaults conda
wheel pkgs/main/noarch::wheel-0.37.1-pyhd3eb1b0_0
xz pkgs/main/linux-64::xz-5.4.2-h5eee18b_0
zlib pkgs/main/linux-64::zlib-1.2.13-h5eee18b_0
Proceed ([y]/n)? y
libuuid-1.41.5 | 27 KB | ############################################### | 100%
wheel-0.37.1 | 33 KB | ############################################### | 100%
Preparing transaction: done
Verifying transaction: done
Executing transaction: done
#
# To activate this environment, use
#
# $ conda activate my_env
#
# To deactivate an active environment, use
#
# $ conda deactivate
Step 12: Activate the new Environment by using the below command
(base) root@linuxhelp:/tmp# conda activate my_env
Step 13: Once the environment is activated verify that you’re using the version of Python
(my_env) root@linuxhelp:/tmp# python --version
Python 3.12.0
Conclusion:
We have reached the end of this article. In this guide, we have walked you through the steps required to install Anaconda on Debian 12. Your feedback is much welcome.
Comments ( 0 )
No comments available