https://bugzilla.redhat.com/show_bug.cgi?id=1550368#c24 adds a patch that prevents pip from removing software from /usr/lib. That will need to be reimplemented for pip's new resolver (default since 20.3). Either we reimplement the patch, or we ensure that RPMs contain no RECORD files and pip honors that.
> Either we reimplement the patch, or we ensure that RPMs contain no RECORD files and pip honors that. Potentially problematic things with RECORD-less RPMs: - egg-infos don't have RECORDs and pip wipes packages with them happily - upgrades (currently, it's possible to upgrade a Python package into /usr/local/lib without uninstalling the one in /usr/lib)
I now see that this needs to be done together with the pip update. Sorry for the noise. *** This bug has been marked as a duplicate of bug 1893470 ***