Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Uninstalling Python3.7 in Ubuntu

I have installed Python3.7 manually following this link: https://websiteforstudents.com/installing-the-latest-python-3-7-on-ubuntu-16-04-18-04/.

I already have default Python3.4 in the Ubuntu. I am unable to install Python 3.7. Please help me on doing this.

like image 221
Nawin K Sharma Avatar asked Mar 28 '26 23:03

Nawin K Sharma


1 Answers

To be certain, list the available python versions using

python3 --version

With this confirmation, you can uninstall the version you do not want (3.7) by running:

sudo apt remove python3.7 #this removes only the python package

To remove the python package and any other dependant package which are no longer needed, run:

sudo apt autoremove python

If you also want to delete configuration and/or data files of python from Ubuntu, run:

sudo apt purge python

To remove all related python3.7 configuration, data files, and dependencies, run:

sudo apt autoremove --purge python
like image 127
Gitau Harrison Avatar answered Apr 03 '26 01:04

Gitau Harrison