Removing python module installed in develop mode

copyninja picture copyninja · Aug 31, 2010 · Viewed 22.5k times · Source

Hi I was trying the python packaging using setuptools and to test I installed the module in develop mode. i.e

python setup.py develop

This has added my modules directory to sys.path. Now I want to remove the module is there any way to do this?

Thanks in advance

Answer

PJ Eby picture PJ Eby · Sep 2, 2010

Use the --uninstall or -u option to develop, i.e:

python setup.py develop --uninstall

This will remove it from easy-install.pth and delete the .egg-link. The only thing it doesn't do is delete scripts (yet).