Skip to content

Instantly share code, notes, and snippets.

@KRostyslav
Last active October 3, 2022 08:49
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 KRostyslav/37f259d2121ca9f00769ab93826f724c to your computer and use it in GitHub Desktop.
Save KRostyslav/37f259d2121ca9f00769ab93826f724c to your computer and use it in GitHub Desktop.
Uninstall python3.5

List all python versions in default locations

ls /usr/bin/python*
ls /usr/bin/ | grep 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

Set python version for npm

npm config set python /usr/bin/python3.7

Also, see https://docs.python-guide.org/starting/install3/linux/

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