作者Tiderus (修炼人生)
看板Python
标题[问题] Google assistant
时间Tue May 1 11:31:25 2018
最近想把Google assistant装到win10上
看了一个外国人教学:
https://www.xda-developers.com/how-to-get-google-assistant-on-your-windows-mac-or-linux-machine/
进行到这个步骤就卡住了
py -m googlesamples.assistant.auth_helpers --client-secrets
path\to\your\client_secret_XXX.apps.googleusercontent.com.json
输入上面代码後
就会出现一段讯息:
No module named googlesamples.assistant.auth_helpers
上网google了一下,发现这个网址
https://stackoverflow.com/questions/44056237/google-assistant-no-module-named-googles
好像说 SDK版本有改,要更新成以下指令:
pip install --upgrade google-auth-oauthlib[tool]
google-oauthlib-tool --client-secrets client_secret_XXXXX.json --scope
https://www.googleapis.com/auth/assistant-sdk-prototype --save --headless
但是输入後出现....
No module named google-oauthlib-tool
有人知道怎麽处理吗?谢谢
--
※ 发信站: 批踢踢实业坊(ptt.cc), 来自: 123.110.61.7
※ 文章网址: https://webptt.com/cn.aspx?n=bbs/Python/M.1525145490.A.388.html
※ 编辑: Tiderus (123.110.61.7), 05/01/2018 11:32:32
※ 编辑: Tiderus (123.110.61.7), 05/01/2018 11:44:59
2F:→ cryinrain: 你参考看看是否有帮助 05/01 22:36
4F:→ andy90498: 这张图片 你需要改两个地方 01/16 11:47
5F:→ andy90498: 第一个是 google-oauthlib-tool.exe 的路径 会不同 01/16 11:47
6F:→ andy90498: 第二个是你放下载凭证的路径 改成你放凭证的路径 01/16 11:48
7F:→ andy90498: 其他照抄即可 我用此法解决 01/16 11:48
8F:→ andy90498: 看起来一大串 仅需输入前两行 01/16 11:49