Install Miniconda3 on Ubuntu

What is Miniconda

Miniconda is a distribution that includes conda, which is responsible for the package management system and environment management system, and Python basic packages. conda If you create a virtual environment using , you can prepare different versions of Python execution environment in the same PC.

Mini this time
I would like to introduce the procedure for installing conda3 on Ubuntu and using the conda tool.

For example, in this page "I tried running YOLOv5 with Qualcomm Snapdragon", I used conda as an example of building a virtual environment.

Installing Miniconda3

Download the Miniconda installer for Linux from the download website.

The file downloaded in this procedure is "Miniconda3-latest-Linux-x86_64.sh".

(1). Open a terminal in Ubuntu and execute the following command.

$ bash Miniconda3-latest-Linux-x86_64.sh

(2). The message "Please confirm the license agreement" appears. Press Enter to confirm the contents of the license agreement.

(3). If you agree to the license agreement, enter yes and press the Enter key.

(4). Confirm the installation destination. The default is "/home/username/miniconda3/".

Press Enter to start the installation.

(5). After the installation is complete, you will be asked if you want to run conda init for initialization. Type yes and press Enter.

(6). This completes the installation procedure.

When you open a new terminal in Ubuntu, the default virtual environment, the base environment, is enabled.


If you do not want to automatically activate the virtual environment when you start the terminal, you can change it by executing the following command.

$ conda config --set auto_activate_base false

conda command

It also introduces basic conda commands.

command

supplement

conda info Check version
conda info -e List conda environments
conda update conda Update conda to the latest version
conda activate [name] Activate the conda environment
conda deactivate Disable running conda environment
conda create --name [name] python=[version] create a new conda environment
conda list

List installed packages

conda install [package name]

install the package

Multiple packages can be specified by separating them with spaces.

If you want to specify the version of the package [package name]==[version]

conda uninstall [package name] uninstall the package
conda search [package name] Search for packages
conda remove --name [name] --all remove the conda environment


This time, I described how to install Miniconda3 on Linux PC (Ubuntu).
WeQualcomm® Snapdragon platform.would like to continue to introduce information that may be useful when evaluating and considering the

Inquiry

For inquiries, please use the form below.

To Qualcomm manufacturer information Top