从googleapiclient.discovery导入生成ModuleNotFoundError:没有名为"googleapiclient"的模块 [英] from googleapiclient.discovery import build ModuleNotFoundError: No module named '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屋!