How to install Miniconda in Ubuntu

Anaconda is a Python distribution repackaged by Continuum Analytics, aimed at developers who use Python extensively for data science. Anaconda provides a handy management GUI as well as tools to simplify data analytics with Python.

In case you didn’t know, the default Anaconda installation includes over 1,500 scientific packages automatically installed at once. That’s great news if you’re a beginner annd want to have everything works right out of the box. But for those who are already familiar with the Anaconda distribution or just want quick access to Python and install the packages later, miniconda is the tool for the job.

In this article, we will show you how to install miniconda on Ubuntu. The guide is applicable to older versions of Ubuntu and many as well as Linux distros based on Debian, such as Linux Mint or Pop! OS.

Also check out: How to install HandBrake, Newman, GNOME Desktop, kubectl, AMD GPU Drivers and Prospect Mail in Ubuntu and Debian.

miniconda vs conda

miniconda is the light-weight, minimal installer for conda.
Meanwhile, conda is the main command line interface of Anaconda.

conda is mainly used to install and manage packages from Anaconda repository.

In order to function properly, Anaconda needs only conda, Python, the packages they depend on, and a small number of other important packages, such as pip, zlib. All the other packages can be pulled from Anaconda repository later along the way.

Update the system

Before installing any new package or application, it is recommended that you update your system, GNOME Deksktop is no exception. To do this, run the commands below which invoke apt package manager to fetch a fresh package list from Ubuntu repository.

sudo apt update

Install miniconda

Next, you have to download miniconda installer. There are three miniconda options running different Python versions for you to choose. Head over to miniconda Linux installers page to download one that suits your use case. In this example, we will grab miniconda3 64-bit installer using Python 3.7.

Code language: JavaScript (javascript)

Once the download completes, run the script with bash to install miniconda.

Code language: CSS (css)

Once you see the output below, press Enter key to answer the prompts :

Welcome to Miniconda3 py37_4.11.0 In order to continue the installation process, please review the license agreement. Please, press ENTER to continue
Code language: JavaScript (javascript)

You will be taken to a long license terms, you can either navigate through it or press Q key to quit reading, then type yes followed by Enter key to accept the terms. After that, specify a path to install miniconda or press Enter to complete the installation.

Do you accept the license terms? [yes|no] [no] >>> yes Miniconda3 will now be installed into this location: /home/nl/miniconda3 - Press ENTER to confirm the location - Press CTRL-C to abort the installation - Or specify a different location below [/home/nl/miniconda3] >>>
Code language: JavaScript (javascript)

Once you see Thank you for installing Miniconda3! line, reboot the system to be able to use miniconda. You can check the installed version number of miniconda by running the command below :

conda --version

We hope that the information above helped you successfully install GNOME Desktop on your Ubuntu system. We’ve also covered other software installation for Linux, such as How to install Chromium browser in Debian, How to install CMake, Airflow and ADB/fastboot on Debian, in case you’re interested. If you have any suggestion, please feel free to leave a comment below.

Leave a Comment