I've installed python 2.6 from source, and somehow later mistakenly installed another python 2.6 from a package manager too.
I can't find a way to uninstall a python that was built from source, is this possible/easy?
Running ubuntu 10.04.
You can use checkinstall to remove Python. The idea is:
dpkg -r to
remove the deb.See this post for more details.
PS. Note that Ubuntu must always have at least one installation of Python installed, or else major pieces of your OS stop working. Above, I'm assuming it's safe to remove the Python built from source, without removing the Python that was installed by the package manager.
PPS. If you accidentally erase all Python installations from your Ubuntu machine, all is not lost. Instructions on how to recover from this situation can be found here.
dpkg -r python to uninstall, which attempts to uninstall python completely!dpkg -r, but it said, that package was not installed, I tried sequence of dpkg -i dpkg -r. That sequence overwrite contents of /var/lib/dpgk/status and now I got python of version of 3.6.3 and lots of python 2.* dependencies were reported broken by apt-get check. I had to change contents of dpkg status file manually to recover.Have you looked into make uninstall I believe this should work for you, assuming you have the python 2.6 source and the make file has uninstall available (it should).
make uninstall' returns make: *** No rule to make target `uninstall'. Stop.'. Maybe i downloaded the wrong python version? Edit: tried it with the correct version, same result.In the future it may be prudent to use sudo checkinstall.