Skip to content

Instantly share code, notes, and snippets.

@arose13
Last active February 18, 2024 12:20
Show Gist options
  • Star 45 You must be signed in to star a gist
  • Fork 14 You must be signed in to fork a gist
  • Save arose13/fcc1d2d5ad67503ba9842ea64f6bac35 to your computer and use it in GitHub Desktop.
Save arose13/fcc1d2d5ad67503ba9842ea64f6bac35 to your computer and use it in GitHub Desktop.
Install Miniconda in Ubuntu
# Setup Ubuntu
sudo apt update --yes
sudo apt upgrade --yes
# Get Miniconda and make it the main Python interpreter
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O ~/miniconda.sh
bash ~/miniconda.sh -b -p ~/miniconda
rm ~/miniconda.sh
export PATH=~/miniconda/bin:$PATH
@beldaz
Copy link

beldaz commented Nov 8, 2017

Suggest you also add
echo "PATH=\$PATH:\$HOME/miniconda/bin" >> .bash_profile

@jamesjun
Copy link

Did you mean
echo "PATH=$PATH:$HOME/miniconda/bin" >> .bashrc

@sr9yar
Copy link

sr9yar commented Nov 28, 2018

This works:
export PATH=~/miniconda/bin:$PATH

@nico-zck
Copy link

nico-zck commented Jan 31, 2019

A better way to install, I guess.

wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh
chmod +x Miniconda-latest-Linux-x86_64.sh
./Miniconda-latest-Linux-x86_64.sh

Then relogin the user, command conda will work.

@ShlomoAbraham
Copy link

@Zhangchenkai, you're missing a '3' in the last two lines:

wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh
chmod +x Miniconda3-latest-Linux-x86_64.sh
./Miniconda3-latest-Linux-x86_64.sh

@brando90
Copy link

yes please add

export PATH=~/miniconda/bin:$PATH

@brando90
Copy link

@Zhangchenkai, you're missing a '3' in the last two lines:

wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh
chmod +x Miniconda3-latest-Linux-x86_64.sh
./Miniconda3-latest-Linux-x86_64.sh

the script works as given @ShlomoAbraham

@francobarrionuevoenv21
Copy link

@Zhangchenkai, you're missing a '3' in the last two lines:

wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh
chmod +x Miniconda3-latest-Linux-x86_64.sh
./Miniconda3-latest-Linux-x86_64.sh

Sorry, but a i tried this way but spyder still not recognizing the package. Any help?

@elejke
Copy link

elejke commented Aug 1, 2021

@harishkhollam
Copy link

This worked perfectly for me when I was setting my Windows 11 pc with WSL Ubuntu. faced an issue while I was installing/creating virtual env on WSL Ubuntu

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment