4

I installed python 3.5.0 from the source code available at python.org. How can I remove that installed package?

8

From this source

You can do :

  1. make clean removes any intermediate or output files from your source / build tree

  2. If you can, running make uninstall will work.

  3. The last option is you have to manually uninstall it. Running make -n install

Note : You must cd the file location where you make install

  • make clean && make distclean are also solution for uninstalling from source =) – Nikolay Nikolov Nov 23 '15 at 7:28
  • 1
    @NikolayNikolov yes because this is the way he do it – BeGood Nov 23 '15 at 13:39
  • 1
    Yes, you are right @BeGood :) – Nikolay Nikolov Nov 23 '15 at 13:42
  • 1
    I ran the above commands and I think they worked. Thanks for the help. – Abhinav Pratap Singh Nov 24 '15 at 7:31
-1

I think this will work. Try this.

pip uninstall python==3.5.0

However, if python comes with dependencies, do not uninstall them.

  • 1
    This won't work. pip is responsible for Python packages, not for Python itself. – warvariuc Jun 26 '17 at 6:36
-4
locate python3.5 | xargs sudo rm -rf $1
  • 2
    -1 No, don't do this; it's dangerous because it deletes other files of that name that don't belong to the Python installation. There's not even a guarantee that it will delete all files that do belong to it. – David Foerster May 20 '16 at 10:22

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.