TypeError:“模块”对象不可调用(安装)

时间:2019-10-22 11:07:18

标签: python-3.x windows-installer

使用以下命令安装软件包时:

pip install --upgrade google-api-python-client

我偶然发现以下错误:

    C:\Users\qadmin>pip install --upgrade google-api-python-client
    Traceback (most recent call last): 
File "C:\Program Files\Python37\lib\runpy.p", line 193, in _run_module_as_main
"__main__", mod_spec)
File "c:\program files\python37\lib\run.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

enter image description here

安装另一个模块时出现相同的错误。例如麻木,也许可以缩小问题的范围。

感谢您的帮助!

1 个答案:

答案 0 :(得分:1)

我认为我给出的解决方案有效

python (or python3) -m pip install --upgrade google-api-python-client

如果是,那么您可以将此标记为已接受答案吗?