[问题] No module named googlesamples.assistant.__main

楼主: achilles2550 (facker)   2018-01-07 09:59:53
各位高手好
小弟我最近在上玩google assistant
安装完后
输入以下指令启动
却得到错误讯息
C:\Windows\system32>python -m googlesamples.assistant
z:\python\python.exe: No module named googlesamples.assistant.__main__; 'googlesamples.assistant' is a package and cannot be directly executed
爬到的文章叫我使用以下指令修正
python -m googlesamples.assistant.grpc.pushtotalk
却得到此结果
C:\Windows\system32>python -m googlesamples.assistant.grpc.pushtotalk
INFO:root:Connecting to embeddedassistant.googleapis.com
WARNING:root:Device config not found: [Errno 2] No such file or directory: 'C:\\Users\\user\\AppData\\Roaming\\googlesaples-assistant\\device_config.json'
INFO:root:Registering device
ERROR:root:Option
作者: kenduest (小州)   2018-01-07 16:21:00
建议你可能先看一下 google 官方文件你提供那网址文件都是很片段不完整的资讯https://pypi.python.org/pypi/google-assistant-sdk/至少这是你用那个套件提供的简易使用说明文件至少先完成注册一个装置后再进行后续流程google 官方文件: https://goo.gl/Zacynt
楼主: achilles2550 (facker)   2018-01-07 16:38:00
好的 感谢 我再试试

Links booklink

Contact Us: admin [ a t ] ucptt.com