pip 更新后,pip 已完全停止工作。
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
原文由 Agustin 发布,翻译遵循 CC BY-SA 4.0 许可协议
这一切都归功于用户 han_solo ,他将答案作为评论而不是答案留下:
而不是
pip install stdlib_list --user
使用
python -m pip install stdlib_list --user
将
stdlib_list
替换为matplotlib
或您想要的包的任何名称。