Reputation: 1004
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.
Upvotes: 3
Views: 14177
Reputation: 3517
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
Upvotes: 4