How to install conda in Ubuntu
1 min read
Install Miniconda (lightweight Conda)
1. Download the Miniconda installer:
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
2. Run the installer:
bash Miniconda3-latest-Linux-x86_64.sh
⚠️ Follow the prompts — accept the license, choose install location, and allow it to initialize Conda (recommended).
3. Restart your shell (or run this now to enable conda):
source ~/.bashrc
4. Check where Miniconda is installed
By default, it installs to your home directory, under:
~/miniconda3
Verify it exists:
ls ~/miniconda3
If you see folders like bin
, etc
, envs
, then it’s installed correctly.
5. Manually add Conda to your PATH
Run this command:
export PATH="$HOME/miniconda3/bin:$PATH"
Then test:
conda --version
If it works, proceed to initialize Conda:
conda init
6. Make the PATH change permanent
To make the PATH
available every time you open a terminal, add it to your .bashrc
or .zshrc
:
echo 'export PATH="$HOME/miniconda3/bin:$PATH"' >> ~/.bashrc
source ~/.bashrc
😊 Thank You 😊
0
Subscribe to my newsletter
Read articles from Vinayak Mali directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by