我正在尝试学习如何使用 Gmail API 在 python 中发送电子邮件。我的脚本中的第一行之一:from googleapiclient.discovery import build给我错误:No module named googleapiclient.discovery我正在尝试通过执行以下操作来安装 googleapiclient:sudo pip install --upgrade google-api-python-client它似乎在做所有正确的事情,直到最后它说:Installing collected packages: httplib2, uritemplate, rsa, cachetools, pyasn1-modules, google-auth, google-auth-httplib2, google-api-python-client Found existing installation: httplib2 0.9.1Cannot uninstall 'httplib2'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.我不确定此消息是否会停止工作,但我仍然收到消息:No module named googleapiclient.discovery当我尝试运行我的代码时。任何建议都非常感谢!
添加回答
举报
0/150
提交
取消