I have a pip requirements file that changes during development.
Can pip be made to uninstall packages that do not appear in the requirement
pip
The short answer is no, you can't do that with pip.