How to Install and Use Miniconda on Ubuntu 20.04

Embark on a seamless installation of Miniconda on Ubuntu 20.04 and discover its robust features with our comprehensive guide.

In this article we will show you how to Install and Use Miniconda on Ubuntu 20.04. An executable piece of code written by someone else is called a package. It usually has a specific job to do. Remember that a package is a tool that you can use for your projects. These packages are helpful because you’d have to write a lot more code to get things done without them.

In the software business, there are software distributions like Miniconda and Anaconda. There are 150 data science packages in Anaconda, which is more than Miniconda has. Miniconda only has a few of the most important ones. Miniconda is the computer that a data scientist uses. Before it starts its journey, every workbench only has a few basic things.

The number of tools on the workbench does, however, grow as the project goes on. All the time, these tools are used, switched, and made better. Each data scientist should make their own workbench to suit their needs. One data scientist’s desk might look very different from another’s, even if they work for the same company.

What is Miniconda?

Miniconda is a free Conda installer that doesn’t do much. A simple version called “bootstrap” that only has conda, Python, and the packages they need, along with a few other useful modules like pip, zlib, and a few others. To add more conda packages from the Anaconda registry, use the conda install command. The fastest way to get conda is to install Miniconda.

You can get over 7,500 open source packages with conda plus if you install Anaconda. Just like we did above, you installed Anaconda as a non-root user. This is the safest way to install something because it doesn’t need permission from the administrator. If you have administrator rights, you can also install Anaconda across the whole system.

System Requirements

  • Operating System: Ubuntu 20.04 or newer
  • Processor: 64-bit processor (x86-64 or AMD64)
  • Memory: 2 GB of RAM (4 GB or more recommended)
  • Hard Disk: 20 GB of free disk space (40 GB or more recommended)
  • Network: Internet connection for downloading and installing packages
  • Optional: Optical drive (DVD or CD) if installing from physical media

How to Install and Use Miniconda on Ubuntu 20.04

Download Miniconda

  1. Go to https://docs.conda.io/en/latest/miniconda.html to see the Miniconda website.
  2. Get the Linux installer for Miniconda. Pick the right installer based on the type of system you have (64-bit or 32-bit).

wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh

Run the Installer

  1. Make the script for installing work:
    • chmod +x Miniconda3-latest-Linux-x86_64.sh
  2. Do this to run the installer:
    • ./Miniconda3-latest-Linux-x86_64.sh
  3. To finish the installation, follow the steps shown on the screen. You’ll be asked to read the licence agreement and pick a place to install the software. To agree to the licence, press Enter and do what it says.
  4. To use the changes, close and reopen your terminal.

Verify the Installation

  1. Start up a new terminal.
  2. Run the following to check the installation:

conda --version

Install Packages

  1. Now, you can use Conda to install Python packages or other software into your environment. For example:
    • conda install numpy pandas matplotlib

Deactivate the Environment

  1. When you’re done working in the environment, deactivate it:
    • conda deactivate

Tips and Best Practices for Using Miniconda on Ubuntu 20.04

Installation

  • Use the official installer for Miniconda: The official Miniconda installer can be downloaded and installed from the Miniconda website This makes sure you get the most recent stable version and keeps you safe from possible security risks.
How to Install and Use Miniconda on Ubuntu 20.04
  • Set up a separate environment for Miniconda: Avoid installing Miniconda across the whole system by making a separate directory for it. This helps keep the system clean and stops problems from happening when other Python installations are used.
  • Set up the Miniconda environment: Install Miniconda and add the Miniconda bin directory to your system’s PATH variable. This will set up the Miniconda environment. You can now run Miniconda commands from anywhere in the terminal.

Environment Management

  • Activate environments before working on projects: Make sure you’re using the right set of dependencies by activating the right Miniconda environment before you start working on a project.
  • To manage environments, use the conda commands: Learn how to use the conda commands for adding, activating, listing, and removing environments. This gives you control over how you take care of the environment.

Dependency Management

  • Keep dependencies up to date: Regularly check for updates to your project’s dependencies using conda update. This ensures you’re using the latest stable versions and security patches.
  • Avoid direct package installation: Use conda commands to install packages, rather than directly installing them using pip. This helps maintain a consistent environment and avoids potential dependency conflicts.

FAQs

What to do after installing Miniconda?

Open a command prompt (cmd.exe), type “conda,” and press “enter.” This will finish the miniconda installation. You should get a printout that shows basic conda commands if your miniconda PATH was set correctly during installation.

How do I open Python in Miniconda?

Click on Start All Apps. Node.js (64-bit) Command Prompt for Anaconda. A window with a command prompt will appear. If you want to run the Python interpreter, type idle. The Python >>> command prompt will show up in a new window called Python Shell.

Can you use Miniconda instead of Anaconda?

Of course, the package manager conda is also built in. To put it another way, Miniconda is like Anaconda but smaller. It is what you need if you want to use the command line to install all the packages you need and don’t want to waste space on your hard drive on packages you won’t use.

Editorial Staff
Editorial Staffhttps://www.bollyinside.com
The Bollyinside editorial staff is made up of tech experts with more than 10 years of experience Led by Sumit Chauhan. We started in 2014 and now Bollyinside is a leading tech resource, offering everything from product reviews and tech guides to marketing tips. Think of us as your go-to tech encyclopedia!

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Related Articles

Best Telemedicine Software: for your healthcare practice

Telemedicine software has transformed my healthcare visits. It's fantastic for patients and doctors since they can obtain aid quickly. I...
Read more
I love microlearning Platforms in today's fast-paced world. Short, focused teachings that engage me are key. Microlearning platforms are great...
Think of a notebook on your computer or tablet that can be changed to fit whatever you want to write...
As of late, Homeschool Apps has gained a lot of popularity, which means that an increasing number of...
From what I've seen, HelpDesk software is essential for modern businesses to run easily. It's especially useful for improving customer...
For all of our important pictures, stories, and drawings, Google Drive is like a big toy box. But sometimes the...