我是编码新手,正在尝试安装 matplotlib 以帮助完成学校项目。我以前使用 pip 安装过软件包,直到现在,当它说时,我从来没有遇到过任何问题。我敢肯定这非常明显,但正如我所说,我很新。谢谢C:\Users\kiran>pip install matplotlibTraceback (most recent call last): File "C:\Users\kiran\AppData\Local\Programs\Python\Python37-32\Lib\runpy.py", line 193, in _run_module_as_main "__main__", mod_spec) File "C:\Users\kiran\AppData\Local\Programs\Python\Python37-32\Lib\runpy.py", line 85, in _run_code exec(code, run_globals) File "D:\Users\kiran\AppData\Local\Programs\Python\Python37-32\Scripts\pip.exe\__main__.py", line 9, in <module>TypeError: 'module' object is not callable
1 回答
料青山看我应如是
TA贡献1772条经验 获得超8个赞
该错误TypeError: 'module' object is not callable是一个错误消息,偶尔会因在方法调用或类实例化结束时忘记括号的常见拼写错误而发生。IE
import MyClass
o = MyClass
#instead of
o = MyClass()
# OR
var = o.MyMethod
# Instead of
var = o.MyMethod()
添加回答
举报
0/150
提交
取消
