作者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://www.ptt.cc/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
→ cryinrain: 你參考看看是否有幫助 05/01 22:36
→ andy90498: 這張圖片 你需要改兩個地方 01/16 11:47
→ andy90498: 第一個是 google-oauthlib-tool.exe 的路徑 會不同 01/16 11:47
→ andy90498: 第二個是你放下載憑證的路徑 改成你放憑證的路徑 01/16 11:48
→ andy90498: 其他照抄即可 我用此法解決 01/16 11:48
→ andy90498: 看起來一大串 僅需輸入前兩行 01/16 11:49