ModuleNotFoundError:没有名为“googleapiclient"的模块 [英] ModuleNotFoundError: No module named 'googleapiclient

查看:72
本文介绍了ModuleNotFoundError:没有名为“googleapiclient"的模块的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果这是一个愚蠢的问题,我深表歉意.我在stackoverflow中搜索过.但是没有找到解决办法.我正在从 Python 2.7 迁移到 Python 3.8.我收到一个程序的以下错误.

Apologies if this is a silly question. I searched in stackoverflow. But did not find the solution. I am working on migration from Python 2.7 to Python 3.8. I am getting the below error for one program.

请帮帮我.

    Traceback (most recent call last):
      File " <Path>\main.py", line 17, in <module>
        import script1
      File " <Path>\script1.py", line 9, in <module>
        import script2
      File " <Path>\script2.py", line 10, in <module>
        from googleapiclient import discovery
    ModuleNotFoundError: No module named 'googleapiclient'

File " <Path>\script1.py", line 9, in <module>  >>> import dfareporting_utils
File " <Path>\script2.py", line 10, in <module> >>> from googleapiclient import discovery

推荐答案

感谢您的回复.我认为 Python3.8 不是一个好的选择.

Thanks for your responses. I think Python3.8 is not good option.

pip install google-api-python-client

以上解决了我的问题.

我比较了 Python2.7 &Python3.8 pip 列表.所以我在 3.8 中安装了 2.7 版本.

I compared Python2.7 & Python3.8 pip list. So I installed version of 2.7 in 3.8.

这篇关于ModuleNotFoundError:没有名为“googleapiclient"的模块的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆