从googleapiclient.discovery导入生成ModuleNotFoundError:没有名为"googleapiclient"的模块 [英] from googleapiclient.discovery import build ModuleNotFoundError: No module named 'googleapiclient'

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

问题描述

Visual Studio出现以下错误:

from googleapiclient.discovery import build ModuleNotFoundError:否名为"googleapiclient"的模块

当我运行使用以下命令读取Google表格的脚本时:

from googleapiclient.discovery导入构建自google_auth_oauthlib.flow import InstalledAppFlow

我已经使用 pip

安装了库

  pip install-升级google-api-python-client google-auth-httplib2 google-auth-oauthlib 

该代码在Pycharm中运行良好,但在VS中使用其他解释器时却无法运行.

解决方案

也许您可以尝试

  pip install google-api-python-client 

有关更多信息,请访问此教程

Visual Studio blows the below error:

from googleapiclient.discovery import build ModuleNotFoundError: No module named 'googleapiclient'

when I am running a script that reads google sheets using the:

from googleapiclient.discovery import build from google_auth_oauthlib.flow import InstalledAppFlow

I have installed the libraries using pip

pip install --upgrade google-api-python-client google-auth-httplib2 google-auth-oauthlib

the code runs fine in Pycharm but not when using other interpreter in VS.

解决方案

maybe you could try

pip install google-api-python-client

For more information,visit this tutorial

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

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