I have created a mess of Python packages. I have installed some packages with pip and others with apt, and then I have got 3 different versions of Python: python2.7, python3, python3.8. I am now getting errors every now and then that I often spend hours Googling and trying to fix only to find out that it was the packages clashing or something. So, today, I finally decided to nuke everything-python and do a clean install of Python, but since Linux itself depends on Python, I decided to do some Googling to find out the safest way to do that; but I have not found any. There is advice online ranging from "sudo apt purge python" to "DO NOT TOUCH IT", and I was really confused. I want Python to be in the state it was when I first installed Ubuntu. But if there is no safe way of doing that, I will take however much of the junk I can get rid of safely. Also, there is some advice online that package managers like conda are non-intrusive, and if I install one, the packages I install there won't interfere with the ones installed with pip and apt, and life will be happy everafter. How true is this?
Asked
Active
Viewed 117 times
type -a python3 python
andfile /usr/bin/python3 /usr/bin/python
– Kulfy Jun 14 '20 at 05:36sudo apt-get install --reinstall pythonX
to reinstall pythonX, would that get rid of all the extra packages? By extra I mean the packages I installed. Also, is it safe? – Wololo Jun 14 '20 at 19:50