How to uninstall python?
-
- New to forums
- Posts: 2
- https://www.youtube.com/channel/UC40BgXanDqOYoVCYFDSTfHA
- Joined: Sun Sep 13, 2020 12:20 pm
How to uninstall python?
I need to use python3 but python2.x is still being used after I have installed python3. How would I go about uninstalling python2.x from my ubuntu VPS.
Re: How to uninstall python?
What do you mean by "still being used" By the python command? Python 3.x uses the python3 command, so it should not be necessary to uninstall Python 2. However, it can still be removed via the apt purge command (depending on what version of python 2 you had).
-
- New to forums
- Posts: 2
- Joined: Sun Sep 13, 2020 12:20 pm
Re: How to uninstall python?
I have python 2.7.17 on the system.
Re: How to uninstall python?
Is there anything that prevents you from running
Removing Python 2 probably wouldn't help anyways, as the "python" alias would most likely not point to python3 after removing 2.
Code: Select all
python3 filename.py