What are the steps to install Miniconda on Ubuntu?
The steps to install Miniconda are as follows:
- Download the Miniconda installer (.sh file) for Ubuntu from the official Miniconda website (https://docs.conda.io/en/latest/miniconda.html).
- Open the terminal, go to the download directory, and run the following command to give the Miniconda installer executable permissions:
- Make Miniconda installation program.sh executable.
- Execute the following command to run the Miniconda installer:
- ./Miniconda installer.sh
- Accept the license agreement for Miniconda.
- Choose the installation location for Miniconda. By default, it will be installed in the user’s home directory.
- Choose whether to add the bin directory of Miniconda to the path. If you choose to add the path, you will be able to run the conda command directly in the terminal.
- Wait for the installation program to finish installing Miniconda.
- After installation is complete, close the terminal and open a new terminal window for the changes to the environment variables to take effect.
- Enter the following command in a new terminal window to verify the installation of Miniconda.
- What is the version of conda?
- If installed successfully, the version number of Miniconda will be displayed.
You have now successfully installed Miniconda on Ubuntu. You can use the conda command to manage and create Python environments.