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
I had the same issue with h5py-2.7.1, and the warnings were gone after upgrading to h5py-2.10.0.
All credit for this goes to user han_solo, who left the answer as a comment, instead of as an answer:
Instead of pip install stdlib_list --user
use python -m pip install stdlib_list --user
Replace stdlib_list
with matplotlib
or whatever the name is of the package you want.
Similar to what @han_solo said, but if your running python3, instead of using:
python -m pip install stdlib_list --user
try using:
python3 -m pip install stdlib_list --user