Skip to content

Instantly share code, notes, and snippets.

@zhensongren
Last active July 5, 2024 09:54
Show Gist options
  • Save zhensongren/811dcf2471f663ed3148a272f1faa957 to your computer and use it in GitHub Desktop.
Save zhensongren/811dcf2471f663ed3148a272f1faa957 to your computer and use it in GitHub Desktop.
How to uninstall python3 from Ubuntu

To list all python versions in default locations

ls /usr/bin/python*

To remove just python3 package

sudo apt-get remove python3.5

plus it's dependent packages

sudo apt-get remove --auto-remove python3.5

plus configuration and/or data files of python3

sudo apt-get purge python3.5

both configuration and/or data files of python3.5 and it's dependencies

sudo apt-get purge --auto-remove python3.5

How to install new version of python

sudo apt-get update

sudo apt-get install python3

Also, see https://docs.python-guide.org/starting/install3/linux/ or install python3.8 https://linuxize.com/post/how-to-install-python-3-8-on-ubuntu-18-04/

ModuleNotFoundError: No module named '_sqlite3'.

  • sudo apt-get install libsqlite3-dev
  • ./configure --enable-loadable-sqlite-extensions && make && sudo make install
@P4R0D-Y
Copy link

P4R0D-Y commented Mar 8, 2024

OMG you are a mfcker. I got my VM almost completely destroyed but i got to recover it. You are a piece of crap.

@jasonm23
Copy link

jasonm23 commented Mar 18, 2024

OK ... NOT ALL OF YOU KNOW THIS...

PYTHON IS USED EXTENSIVELY IN MOST LINUX DISTROS, ESPECIALLY IN GUI/DESKTOP

DO NOT DO THIS UNLESS YOUR INTENT IS TO REINSTALL PYTHON IMMEDIATELY AND YOU KNOW WHAT YOU ARE DOING !!!!!!!!!!!

@jarodsim
Copy link

I just broke my father SO AHAHHAHHAHAHA OOOOOOOOO NO

@adith-p
Copy link

adith-p commented Jul 5, 2024

this page is still up 🤣

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