Last active
December 27, 2022 14:57
-
-
Save shubhamagarwal92/65ccf667586e4bb6ee01661a1a9b6417 to your computer and use it in GitHub Desktop.
Installing latest conda
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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