I installed python 3.5.0 from the source code available at python.org. How can I remove that installed package?
Asked
Active
Viewed 4.2k times
7
-
4Possible duplicate of [If I build a package from source how can I uninstall or remove completely?](http://askubuntu.com/questions/87111/if-i-build-a-package-from-source-how-can-i-uninstall-or-remove-completely) – muru Nov 23 '15 at 08:15
3 Answers
10
From this source
You can do :
make cleanremoves any intermediate or output files from your source / build treeIf you can, running
make uninstallwill work.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 07:28
-
1
-
1
-
1I ran the above commands and I think they worked. Thanks for the help. – Abhinav Pratap Singh Nov 24 '15 at 07:31
-
1
-2
I think this will work. Try this.
pip uninstall python==3.5.0
However, if python comes with dependencies, do not uninstall them.
-
1This won't work. `pip` is responsible for Python packages, not for Python itself. – warvariuc Jun 26 '17 at 06:36
-6
locate python3.5 | xargs sudo rm -rf $1
crucl0
- 1
-
3-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