This brief tutorial shows students and new users how to install Anaconda open source distribution on Ubuntu 20.04 | 18.04
Anaconda is a popular platform for data science and machine learning tasks. It comes with a wide range of pre-installed packages and libraries, making it easier for users to start working on their projects without worrying about installing dependencies.
Installing Anaconda on Ubuntu Linux allows users to easily take advantage of the platform’s features and develop Python/R applications. Additionally, Ubuntu is an open-source Linux operating system that provides a great environment for developers to work on their projects.
It’s free, stable, and has a large community of developers that can help troubleshoot any issues.
Ubuntu is an open-source Linux operating system that runs on desktops, laptops, servers, and other devices.
To get started with installing Anaconda, follow the steps below:
Download Anaconda Install Script
Anaconda for Linux systems comes with an installation script.
You only need to download and install it; it will set up your system. To download it, go to the link below:
Then select the Linux version and download. At the time of this post, the latest stable version is 2019.10.
After downloading, you can run the commands below to install, assuming that the file was downloaded in the Downloads folder of your home directory.
Run Anaconda Install Script
Depending on where you downloaded the script, go to the location and run it.
cd ~/Downloads
Or you can run the commands below to copy the link and get it from the command line.
cd /tmp
wget https://repo.anaconda.com/archive/Anaconda3-2019.10-Linux-x86_64.sh
After downloading the script, run the commands below to begin the installation.
bash Anaconda3-2019.10-Linux-x86_64.sh
You should see an output like the one below:
Welcome to Anaconda3 2019.10 In order to continue the installation process, please review the license agreement. Please, press ENTER to continue >>>
Hit the Enter key to continue and do the same to read its licensing terms.
When prompted if you’d like to accept the licensing terms, type yes.
Do you accept the license terms? [yes|no] [no] >>> yes
Then continue
Anaconda will choose a default location in your home directory to install. if you don’t want to change, press Enter and continue
Anaconda3 will now be installed into this location: /home/richard/anaconda3 - Press ENTER to confirm the location - Press CTRL-C to abort the installation - Or specify a different location below [/home/richard/anaconda3] >>>
After that, type yes
Preparing transaction: done
Executing transaction: done
installation finished.
Do you wish the installer to initialize Anaconda3
by running conda init? [yes|no]
[no] >>> yes
and continue
After the installation, you should see the message below:
==> For changes to take effect, close and re-open your current shell. <== If you'd prefer that conda's base environment not be activated on startup, set the auto_activate_base parameter to false: conda config --set auto_activate_base false Thank you for installing Anaconda3! =========================================================================== Anaconda and JetBrains are working together to bring you Anaconda-powered environments tightly integrated in the PyCharm IDE. PyCharm for Anaconda is available at: https://www.anaconda.com/pycharm
Next, open a new Ubuntu terminal session for the changes to take effect.
Or simply run the command below to load Anaconda installation new PATH environment variable, which was added into the current shell session
source ~/.bashrc
To verify if Anaconda is installed, type the commands below:
conda info
You should see an output similar to the one below:
(base) richard@ubuntu1804:~$ conda info active environment : base active env location : /home/richard/anaconda3 shell level : 1 user config file : /home/richard/.condarc populated config files : conda version : 4.7.12 conda-build version : 3.18.9 python version : 3.7.4.final.0 virtual packages : base environment : /home/richard/anaconda3 (writable) channel URLs : https://repo.anaconda.com/pkgs/main/linux-64 https://repo.anaconda.com/pkgs/main/noarch https://repo.anaconda.com/pkgs/r/linux-64 https://repo.anaconda.com/pkgs/r/noarch package cache : /home/richard/anaconda3/pkgs /home/richard/.conda/pkgs envs directories : /home/richard/anaconda3/envs /home/richard/.conda/envs platform : linux-64 user-agent : conda/4.7.12 requests/2.22.0 CPython/3.7.4 Linux/5.0.0-32-generic ubuntu/18.04.3 glibc/2.27 UID:GID : 1000:1000 netrc file : None offline mode : False
That’s it!
If you want to update Anaconda, simply run the command below:
conda update conda
When prompted, type y for yes to begin the update.
Conclusion:
- Anaconda is a powerful tool for efficiently managing data science and machine learning projects.
- The installation on Ubuntu is straightforward and user-friendly, making it accessible for beginners and professionals alike.
- Users can benefit from a wide range of pre-installed packages and libraries, enhancing productivity.
- Regular updates and a strong community provide support and resources to resolve any issues.
- Remember to verify your installation and configure your environment for optimal usage after setup.
- Explore additional features and integrations, such as PyCharm, to enhance your Anaconda development experience.
Leave a Reply to Srikar Marupaka Cancel reply