How to Install Conda on Odroid-C2 (or ARM64)



  Environment
    Device : Odroid-C2 (or ARM64)
    OS : Ubuntu-20.04




※ If you want to install Conda on ARM64,

you can do it by MiniForge (Conda for ARM64)


1. Generate New Account for Conda


$ sudo adduser Conda
Adding user `conda' ...
Adding new group `conda' (1003) ...
Adding new user `conda' (1003) with group `conda' ...
Creating home directory `/home/conda' ...
Copying files from `/etc/skel' ...
New password:
Retype new password:
passwd: password updated successfully
Changing the user information for aa
Enter the new value, or press ENTER for the default
        Full Name []: conda
        Room Number []:
        Work Phone []:
        Home Phone []:
        Other []:
Is the information correct? [Y/n]
$ su conda

2. Install Conda


1) Download conda
$ cd ~
$ wget https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-Linux-aarch64.sh
$ ls
$ bash Miniforge3-Linux-aarch64.sh
$ exit

※ Install Mini-Forge to Install on ARM64

$ su conda
$ cd ~

Upgrade Conda Environment

$ conda update --all
2) Generate Python2.7 Environment

Generate Conda Environment

$ conda create -n py27 python=2.7

Activate Conda Environment

$ conda activate py27

Upgrade Conda Environment

$ conda update --all

Install Packages

$ conda install paramiko pymysql beautifulsoup4 jupyterlab pandas

Deactivate Conda Environment

$ conda deactivate

3) Generate Python3.7 Environment

Generate Conda Environment

$ conda create -n py37 python=3.7

Activate Conda Environment

$ conda activate py37

Upgrade Conda Environment

$ conda update --all

Install Packages

$ conda install paramiko pymysql bs4 jupyterlab pandas

Deactivate Conda Environment

$ conda deactivate

4) Generate Python3.8 Environment

Generate Conda Environment

$ conda create -n py38 python=3.8

Activate Conda Environment

$ conda activate py38

Upgrade Conda Environment

$ conda update --all

Install Packages

$ conda install paramiko pymysql bs4 jupyterlab pandas

Deactivate Conda Environment

$ conda deactivate

5) Generate Python3.9 Environment

Generate Conda Environment

$ conda create -n py39 python=3.9

Activate Conda Environment

$ conda activate py39

Upgrade Conda Environment

$ conda update --all

Install Packages

$ conda install paramiko pymysql bs4 jupyterlab pandas

Deactivate Conda Environment

$ conda deactivate

※ Anaconda is Not Supported on Miniforge3-Linux-aarch64


Basic Command of Conda


Show installed Environments List

conda env list

Generate an Environment

conda create -n yourenvironment yourpackages

Remove an Environment

conda remove --name myenv

Upgrade an Package

conda update mypackage

Upgrade all Packages

conda update --all

Show installed Packages

conda list