1

When I execute:

$ which -a python
/usr/local/bin/python
/usr/bin/python

This bothers me because execute python directly will execute /usr/local/bin/python, but it can't link to correct dependencies. So, how could i correctly uninstall it? I've checked all packages.

I've checked dpkg --search /usr/local/bin/python but only get no path found matching pattern /usr/local/bin/python. Seems it was installed by compiling sources of python and make install. But now how can i remove it?

muru
  • 197,895
  • 55
  • 485
  • 740
demonguy
  • 231
  • 1
    Packages do not install to /usr/local/. That looks like software manually compiled and installed. – muru Jan 19 '15 at 11:18
  • Yes, I mentioned above, and how can I uninstall it? – demonguy Jan 19 '15 at 11:33
  • Unless you used checkinstall, or have the original makefile around, there's no clean way. – muru Jan 19 '15 at 11:35
  • @muru Sorry, I'm not quite sure if i installed it manually, and i just took "Python" as the keyword during searching, so i didn't see that post. – demonguy Jan 19 '15 at 11:51

1 Answers1

1

I found a way to uninstall it clearly. Just found the .tar file again and make install it again, it will output what it is installing. And just delete all the files and folder shows in there.

demonguy
  • 231