3

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.

1 Answer 1

4

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
Sign up to request clarification or add additional context in comments.

3 Comments

sudo apt remove 3.7 is showing it is not installed, so can't uninstall
What do you get when you run python3 --version?
Thanks for your attention. For python3 --version, it is showing 3.7.4, but no apt command working on it. I actually want where the folder is, if we install according to given link?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.