Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to reset site-packages

Tags:

python

windows

Is there a way to "reset" C:\Python26\Lib\site-packages? i.e. to remove all packages and modules installed either by setup.py install or using easy_install?

Motivation: something went wrong with all the package versions and dependencies and I rather reset and reinstall everything than spend the time in figuring out what it was exactly...

like image 326
Jonathan Livni Avatar asked Oct 25 '22 00:10

Jonathan Livni


2 Answers

You could just delete all the contents in the folder, although there may still be files in Tools/Scripts and other places left over.

Have a look here:StackOverflow: uninstall a python package

like image 177
ed. Avatar answered Oct 27 '22 09:10

ed.


Take a look at virtualenv for future reference.

like image 26
Lewis Ellis Avatar answered Oct 27 '22 09:10

Lewis Ellis