How to install conda in Ubuntu and create an environment

Installing Conda:

Update packages:

sudo apt-get update
sudo apt-get install curl
cd /tmp
curl -O https://repo.anaconda.com/archive/Anaconda3-2020.11-Linux-x86_64.sh
bash Anaconda3-2020.11-Linux-x86_64.sh
source ~/.bashrc
conda -V
conda update conda
conda update anaconda

Creating a Conda Env:

Create:

conda create --name py3 python=3
conda activate py3
conda deactivate
conda install <package-name>[=version]