更新错误“模块"对象不可调用后 pip 不再工作 [英] pip no longer working after update error 'module' object is not callable

查看:16
本文介绍了更新错误“模块"对象不可调用后 pip 不再工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

pip 更新后,pip 已完全停止工作.

After a pip update, pip has stopped working completely.

Z:>pip install matplotlib
Traceback (most recent call last):
  File "c:program filespython37lib
unpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "c:program filespython37lib
unpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "C:Program FilesPython37Scriptspip.exe\__main__.py", line 9, in <module>
TypeError: 'module' object is not callable

有什么帮助吗?

我正在使用 Windows 10

I am working on windows 10

推荐答案

这一切归功于用户 han_solo,谁把答案作为评论,而不是作为答案:

All credit for this goes to user han_solo, who left the answer as a comment, instead of as an answer:

代替 pip install stdlib_list --user

使用 python -m pip install stdlib_list --user

stdlib_list 替换为 matplotlib 或任何您想要的包的名称.

Replace stdlib_list with matplotlib or whatever the name is of the package you want.

这篇关于更新错误“模块"对象不可调用后 pip 不再工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆