仍然安装了所有库:- ModuleNotFoundError:没有名为“google”的模块

问题描述 投票:0回答:1

我是 mac 用户,使用 sublime text,这是代码,

from googleapiclient.http import MediaFileUpload
from Google import Create_Service

File = 'file.json'
Api = 'Drive'
apiVersion = 'V3'
scopes = ['https://www.googleapis.com/auth/drive']
  • 错误:从 Google 导入 Create_Service ModuleNotFoundError:否 名为“Google”的模块

**我已经安装了谷歌库

pip install google
pip install google-api-core
pip3 install google-api-python-client
ran all these commands

也更新了它,但仍然没有任何效果,它显示相同的错误**

python-3.x google-api modulenotfounderror
1个回答
0
投票

您缺少一些导入内容

pip install --upgrade google-api-python-client google-auth-httplib2 google-auth-oauthlib
© www.soinside.com 2019 - 2024. All rights reserved.