我按照下面链接中的说明在我的Windows中设置了google助手。
https://developers.google.com/assistant/sdk/guides/library/python/
但是在运行hotword命令的步骤中,我得到了下面的error:
Traceback (most recent call last):
File "c:\users\310211247\appdata\local\continuum\miniconda3\lib\runpy.py",line 193, in
_run_module_as_main
"__main__", mod_spec)
File "c:\users\310211247\appdata\local\continuum\miniconda3\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "C:\Users\310211247\AppData\Local\Continuum\miniconda3\Scripts\googlesamples-assistant-hotword.exe\__main__.py", line 5, in <module>
File "c:\users\310211247\appdata\local\continuum\miniconda3\lib\site-packages\googlesamples\assistant\library\hotword.py", line 27, in <module> from google.assistant.library import Assistant
ModuleNotFoundError: No module named 'google.assistant.library'如何解决此错误?
发布于 2018-07-23 20:32:29
发布于 2019-10-02 20:00:09
Google的建议是使用辅助服务:
Google Python助手库于2019年6月28日被取消。
您可以按照以下说明配置助手:
https://developers.google.com/assistant/sdk/guides/service/python/
安装之后,需要安装辅助库以使热词正常工作:
pip install google-assistant-library然后,你可以运行谷歌助理的热词:
googlesamples-assistant-hotword --project-id project --device-model-id modelhttps://stackoverflow.com/questions/51467503
复制相似问题