This brief tutorial shows students and new users how to install Anaconda open source distribution on Ubuntu 20.04 | 18.04
Anaconda is the world’s most popular Python/R data science and machine learning platform on Linux, Windows and Mac OS. With 1,500+ Python/R data science packages, it has become industry standard platform for developing, testing Python/R applications.
If you’re a student or new user looking for a Linux system to start learning on, the easiest place to start is Ubuntu Linux OS…. It’s a great Linux operating system for beginners and folks looking for easier Linux distribution to use.
Ubuntu is an open source Linux operating systems that runs on desktops, laptops, server and other devices…
When using Ubuntu, you will find that Linux isn’t so different than Windows and other operating systems in so many ways, especially when it comes to using the system to get work done.…
Both Ubuntu and Windows systems allow you to be productive, easy to use, reliable and enable you to install and run thousands of programs from gaming to productivity suite software for individuals and businesses.
To get started with installing Anaconda, follow the steps below:
Step 1: Download Anaconda Install Script
Anaconda for Linux systems comes with its own installation script.
All you need to do is to download it and install, it will take care of the rest of setting you system up. To download it, go to the link below:
Then select Linux version and download. At the time of this post, the latest stable version is 2019.10.
After downloading, you can then run the commands below to install, assuming that the file was downloaded in your Downloads folder of your home directory.
Step 2: Run Anaconda Install Script
Depending on where you downloaded the script, go to the location and run it.
Or you can run the commands below to copy the link and wget 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.
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
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
After the installation, you should see a message as 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
To verify if Anaconda is installed, type the commands below:
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
If you want to update Anaconda, simply run the command below:
conda update conda
When prompted, type y for yes to begin the update.
You’ve learned how to install Anaconda platform on Ubuntu 18.04 | 16.04. If you notice an error above, please comment below:
You may also like the post below: