Conda Setup
Conda Setup
04 LTS
Before following this tutorial ensure that you have Python installed on your Ubuntu
system. Although, it would be because python version 3.x is already there on Ubuntu
20.04 out of the box. If not then you can use the APT package manager to install
it, here is the command- sudo apt install python3
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
bash Miniconda3-latest-Linux-x86_64.sh
Hit the Enter key to start the installation process. Soon, the installer will ask
to accept the License, press q, and then type Yes to accept it.
Trivia: In case you have activated the base environment of Condo to start every
time with terminal and now you want to deactivate it, then here is the command to
follow:
Once created, you can activate the environment using the command:
conda deactivate
7. How to update
To update the Conda package manager you can use its own command line:
rm -rf ~/miniconda3
Remove the Conda Initialize code from your bash profile.
nano ~/.bashrc
Find the lines shown in the screenshot and delete them.
After that save the file using Ctrl+O, hit the Enter key, and use Ctrl+X.
Close the Terminal and start it again or simply source the Bash using:
source ~/.bashrc