pip no longer working after update error 'module' object is not callable

前端 未结 10 821
予麋鹿
予麋鹿 2020-11-28 04:31

After a pip update, pip has stopped working completely.

Z:\\>pip install matplotlib
Traceback (most recent call last):
  File \"c:\\program files\\python3         


        
相关标签:
10条回答
  • 2020-11-28 04:58

    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

    0 讨论(0)
  • 2020-11-28 05:00

    I had the same issue with h5py-2.7.1, and the warnings were gone after upgrading to h5py-2.10.0.

    0 讨论(0)
  • 2020-11-28 05:02

    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.

    0 讨论(0)
  • 2020-11-28 05:05

    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

    0 讨论(0)
提交回复
热议问题