Install Miniconda on Linux Guide
- Download the Miniconda installation package by first visiting the official Miniconda website. You can choose to download the .sh file for Linux systems.
- 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.
- 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.
- Update the environment variables to apply the changes in configuration.
source ~/.bashrc
- 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.