开发者

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 go开发者_高级运维od way to just uninstall every package and python itself?


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜