Skip to content

Instantly share code, notes, and snippets.

@akshilshah
Created October 4, 2020 05:24
Show Gist options
  • Save akshilshah/46b0637888f9161eb31b4a7c21d207c1 to your computer and use it in GitHub Desktop.
Save akshilshah/46b0637888f9161eb31b4a7c21d207c1 to your computer and use it in GitHub Desktop.
Remove python 2.7 from ubuntu 18.04
# Source: https://stackoverflow.com/questions/44602191/how-to-completely-uninstall-python-2-7-13-on-ubuntu-16-04
# Remove python2
sudo apt purge -y python2.7-minimal &&
sudo ln -s /usr/bin/python3 /usr/bin/python &&
sudo apt install -y python3-pip &&
sudo ln -s /usr/bin/pip3 /usr/bin/pip
@ggrobi
Copy link

ggrobi commented Oct 25, 2020

Great works well

@esanchez411
Copy link

Perfect, thank u

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