After a pip update, pip has stopped working completely.
Z:\\>pip install matplotlib Traceback (most recent call last): File \"c:\\program files\\python3
Had the same problem. I've managed to fix it by reinstalling pip in place, using combination the other answers:
python -m pip install -U --force-reinstall pip