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?
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.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.