After a pip update, pip has stopped working completely.
Z:\\>pip install matplotlib Traceback (most recent call last): File \"c:\\program files\\python3
This worked for me, uninstall pip 19.3.1 and replace with 19.0.3, error gone.
python -m pip install pip==19.0.3 --user