Google助理“没有名为Google的模块…”

每当我运行这个命令

py -m googlesamples.assistant.auth_helpers -client-secrets <secrete-location> 

我得到一个错误说:

 C:\Users\chand\AppData\Local\Programs\Python\Python36\python.exe: No module named googlesamples.assistant.auth_helpers 

我不知道是什么问题,因为它在不同的设备上使用相同的步骤。

根据SDK的0.3.0版本,gRPC示例使用了不同的身份验证助手。

 pip install --upgrade google-auth-oauthlib[tool] google-oauthlib-tool --client-secrets path/to/client_secret_XXXXX.json --scope https://www.googleapis.com/auth/assistant-sdk-prototype --save --headless 

从那里,你应该能够遵循SDK包和gRPC包页面的指示,并探索参考样本

当我没有进入语音外壳时,我得到了这个错误

. /home/pi/bin/voice-recognizer-shell.sh

重新运行

(env) pi@raspberrypi:~/voice-recognizer-raspi $ ./src/main.py