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

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

问题描述

更新了点子后,点子已完全停止工作.

After a pip update, pip has stopped working completely.

Z:\>pip install matplotlib
Traceback (most recent call last):
  File "c:\program files\python37\lib\runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "c:\program files\python37\lib\runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "C:\Program Files\Python37\Scripts\pip.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天全站免登陆