Jim Zhang
Jim Zhang

Reputation: 51

How do I completely uninstall Python and all its packages?

I installed some packages , but I think either some of the packages corrupted or are conflicting with versions

Is there a good way to just uninstall every package and python itself?

Upvotes: 3

Views: 3652

Answers (1)

David Wolever
David Wolever

Reputation: 154664

If you just want to remove all the packages you've installed (as opposed to all of Python), you'd want to nuke your site-packages directory.

To find it, from Python run >>> import some_package (where some_package is a package you've installed; setuptools is one you're likely to have), then run some_package.__file__. The output should be something like /path/to/site-packages/distribute-0.6.19-py2.6.egg/setuptools/__init__.pyc. Delete (or, better yet, rename) and recreate /path/to/site-packages. That will get rid of everything you've installed.

Upvotes: 2

Related Questions