Install Miniconda on Linux Guide

  1. Download the Miniconda installation package by first visiting the official Miniconda website. You can choose to download the .sh file for Linux systems.
  2. Install Miniconda by opening the terminal and navigating to the directory containing the Miniconda installation package. Then execute the following command to install it:
bash Miniconda3-latest-Linux-x86_64.sh

You can choose the installation path and other options according to the prompts.

  1. Set up environment variables. After installation, it is necessary to configure the environment variables so that the system can locate the installation path of Miniconda. Edit the ~/.bashrc file and add the following line:
export PATH="/path/to/miniconda/bin:$PATH"

The installation path for Miniconda can be found at /path/to/miniconda.

  1. Update the environment variables to apply the changes in configuration.
source ~/.bashrc
  1. Verify installation
    Input the following command to verify if Miniconda has been successfully installed:
conda --version

If installation is successful, the version number of Miniconda will be displayed.

With that, the installation and configuration of Miniconda on a Linux system is complete. Next, you can use the conda command to manage Python environments and packages.

bannerAds