I am new to coding, and am trying to install matplotlib to help with a school project. I have installed packages using pip before, and I've never had any problem until now, when it says. I'm sure it's blindingly obvious but as I said I'm very new. Thank you
C:\Users\kiran>pip install matplotlib
Traceback (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
The error TypeError: 'module' object is not callable
is an error message that occasionally occurs from a common typo of forgetting parens at the end of a method call or class instantiation. Ie
import MyClass
o = MyClass
#instead of
o = MyClass()
# OR
var = o.MyMethod
# Instead of
var = o.MyMethod()
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.