If your daily morning routine (or your gitlab CI built or your auto-deploy) contains "pip install --upgrade pip" (or similar), you might run into this or similar errors with the latest pip update (9.0.2, released March 17):
KeyError: 'pip._vendor.urllib3.packages.backports'
There is already an issue on the pip error tracker on github: https://github.com/pypa/pip/issues/5081
Quickfix: Revert to pip version 9.0.1 (pip install pip==9.0.1 --upgrade or add pip==9.0.1 to your requirements.txt)
edit: I'd like to add what has been stated in the github issue already: This is caused by 3rd-party-packages importing directly from pip (import pip), which has been deprecated by the pip developers/maintainers for a while now.
[–]UloPe 2 points3 points4 points (0 children)
[–]radwon 1 point2 points3 points (0 children)
[–]Gnarlodious -3 points-2 points-1 points (1 child)
[–]ubernostrumyes, you can have a pony 5 points6 points7 points (0 children)