Table of Contents
How to Install Miniconda on Ubuntu 22.04: Workflows related to machine learning and data science are managed by the open-source platform Anaconda. This framework helps with large-scale data processing, predictive analysis, and scientific computing with more than 7500 scientific programmes. You don’t have to bother about installing each package separately with its dependencies. It is regarded as an integrated Python environment as well.
A package is a portion of executable code that has been authored by another person and typically has a specific function. Consider a package as an instrument that you can use for your tasks. These packages come in handy since without them, writing more code would be necessary to achieve your objectives. Popular Python/R data science platform Anaconda is accessible to data scientists, non-expert users, and other scientific communities.
Because the platform is an open-source distribution (distro), users can experiment with Python/R on widely used operating systems such as Windows, Linux, and Mac OS X for data science and machine learning. We’ll walk you through the process of installing the most recent Anaconda version on a virtual private server (VPS hosting) in this article. We will also go over how to Install Miniconda on Ubuntu 22.04.
What is Miniconda?
Python software packages are managed and distributed using Miniconda, a free and open-source software package management system. It’s a scaled-down variant of the well-known Conda package management system. Conda is a cross-platform utility that is mostly utilised in the Python community for managing environments and dependencies for different programming languages.
Miniconda bundles Python and other necessary packages with a small installer for Conda. Its main objective is to enable users to establish and oversee separate Python environments, each with a unique configuration of libraries, dependencies, and Python version. This guarantees the software environment’s repeatability and aids in preventing conflicts between various projects.
How to Install Miniconda on Ubuntu 22.04
Download the Miniconda Installer

- Visit the Miniconda download page: https://docs.conda.io/en/latest/miniconda.html
- Choose the appropriate installer for your system (Linux 64-bit in this case).
- Download the installer script, typically named
Miniconda3-latest-Linux-x86_64.sh.
Run the Installer
- Open a terminal window (Ctrl+Alt+T).
- Navigate to the directory where you downloaded the installer script.
- Run the installer with root privileges:
- sudo bash Miniconda3-latest-Linux-x86_64.sh
- Follow the prompts on the screen.
- Press Enter to continue and view the license agreement.
- Press Enter to accept the license.
- Choose the installation location (default is usually fine).
- Press Enter to begin the installation.
Initialize Conda
- Close and reopen your terminal window for the changes to take effect.
- Verify the installation:
- conda list
- This should display a list of installed packages, confirming that Miniconda is working.
Why Use Miniconda on Ubuntu 22.04?
- Isolation of Environments: Miniconda allows you to create isolated Python environments. This is beneficial when working on multiple projects with different dependencies. Each environment can have its own set of packages, preventing conflicts between project requirements.
- Package Management: Miniconda simplifies package management. With the
condapackage manager, you can easily install, update, and remove packages. Conda can manage packages from the official Anaconda repository, as well as other channels, providing a wide range of libraries and tools. - Ease of Installation: Miniconda is a minimal installer for Conda, making it a lightweight alternative to the full Anaconda distribution. It only installs essential components, and you can then add packages as needed, which is useful for conserving disk space and avoiding unnecessary installations.
- Cross-Platform Consistency: Miniconda ensures consistency across different operating systems. Whether you are working on Ubuntu, Windows, or macOS, the conda package manager provides a consistent environment for managing Python and non-Python packages.
- Conda Virtual Environments: Miniconda supports the creation of virtual environments through conda. These environments can include packages from various sources and are not limited to Python packages. This flexibility makes it easier to manage dependencies for projects that require a combination of different tools and languages.
- Dependency Resolution: Conda handles dependency resolution, ensuring that when you install a package, all the required dependencies are also installed and compatible. This helps prevent version conflicts and simplifies the process of setting up an environment.
System Requirements for Installing Miniconda on Ubuntu 22.04
| Requirement | Description |
|---|---|
| Operating System | Ubuntu 22.04 (or any compatible Linux distribution) |
| Architecture | 64-bit (x86_64) |
| Disk Space | Minimum of 400 MB of free space |
| Internet Connection | Required for downloading the installer |
| Shell Access | A terminal emulator (e.g., GNOME Terminal) with root privileges (sudo) |
| Optional | Graphical user interface (GUI) for conda (available separately) |
Conclusion
A free and small installation for conda is called Miniconda. It is an alternative to Anaconda, which just includes a few basic bundles, Conda, and Python. Miniconda includes Python, conda, and a small number of dependencies packages for Python and conda. Additionally, it includes a restricted selection of useful packages like Requests, PIPs, and many more. We’ll walk you through installing Miniconda on Ubuntu 22.04 in this article.
Questions and Answers
Basically, there are two key distinctions: Number of packages: Miniconda has a small number of data science packages, compared to over 150 in Anaconda. Interface: Miniconda has a command-line interface, and Anaconda features a graphical user interface (GUI) known as the Navigator.
A free basic installer for conda is called miniconda. Just conda, Python, the packages they both depend on, plus a handful of additional helpful packages (like pip, zlib, and a few more) are included in this condensed bootstrap version of Anaconda.
If Anaconda is already installed on your computer, you can use it without any issues while taking the Geo-Python course. On the other hand, we advise that you begin installing Miniconda on your computer if you are new to Python and haven’t installed anything yet.
Goal. Important: The goal of the miniconda installation is to provide users with virtual environments by installing a minimal set of modules for the Anaconda Python setup. This makes it possible to create small, personalised virtual environments.