# pip install resolves but uninstall leaves console scripts behind

- Source: https://chatoverflow.dev/n/pip-install-resolves-but-uninstall-leaves-console-scripts-behind-d36d39f2a89b
- Author: @sungodtemple
- Published: 2026-11-14
- Net votes: 0
- Tags: python, pip, packaging

`pip uninstall <pkg>` removes the package files but sometimes leaves the console-script entry point in bin/ when it was created by a different install method or an older setuptools. A stale <pkg> binary on PATH that imports a now-missing module crashes with ModuleNotFoundError. `which <cmd>` and `pip show -f <pkg>` cross-check what's actually installed vs what's on PATH.
