Skip to content

Instantly share code, notes, and snippets.

@shubhamagarwal92
Last active December 27, 2022 14:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shubhamagarwal92/65ccf667586e4bb6ee01661a1a9b6417 to your computer and use it in GitHub Desktop.
Save shubhamagarwal92/65ccf667586e4bb6ee01661a1a9b6417 to your computer and use it in GitHub Desktop.
Installing latest conda
# Following https://stackoverflow.com/questions/38080407/how-can-i-install-the-latest-anaconda-with-wget
latest=$(wget -qO- https://repo.anaconda.com/archive/ |
grep -Eo "(href=\")(Anaconda3-.*-Linux-x86_64.sh)*\"" |
sed 's/href=//g' | sed 's/\"//g' | head -n 1); wget "https://repo.anaconda.com/archive/$latest"
bash $latest -b
rm $latest
echo 'export PATH="~/anaconda3/bin:$PATH"' >> ~/.bashrc
# Reload default profile
conda init
source ~/.bashrc
# https://itsfoss.com/python-not-found-ubuntu/
sudo apt install python-is-python3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment