无法安装Google-Assistant-SDK [samples] raspberry pi Zero w
我试图将Google Assistant安装到Raspberry Pi Zero W.
中。在最后一步中,它无法完成安装Google-Assistant-SDK [samples]。
我在pi Zero上运行Python 3.9.2。 Python 3也已加载。
根据Google Assistant SDK设置指令,我将以下内容加载到我的PI零作为运行助手的设置的一部分。
sudo apt-get update
sudo apt-get install python3-dev python3-venv
python3 -m venv env
env/bin/python -m pip install --upgrade pip setuptools wheel
激活了虚拟env
source env/bin/activate
然后,我在虚拟设备中
sudo apt-get install portaudio19-dev libffi-dev libssl-dev
,我加载了最后一步,需要加载Google Assistant SDK,这是错误的地方。
python -m pip install --upgrade google-assistant-sdk[samples]
最初,设置似乎进展顺利,然后在下载grpcio-1.47.0.tar.gz后准备元数据时,子过程出错了。
Collecting grpcio>=1.3.5
Downloading grpcio-1.47.0.tar.gz (21.9 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 21.9/21.9 MB 627.2 kB/s eta 0:00:00
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [14 lines of output]
Traceback (most recent call last):
File "<string>", line 2, in <module>
File "<pip-setuptools-caller>", line 34, in <module>
File "/tmp/pip-install-07egyhge/grpcio_4430b3443c8b44d5b7610d4106a35227/setup.py", line 263, in <module>
if check_linker_need_libatomic():
File "/tmp/pip-install-07egyhge/grpcio_4430b3443c8b44d5b7610d4106a35227/setup.py", line 219, in check_linker_need_libatomic
cpp_test = subprocess.Popen(
File "/usr/lib/python3.9/subprocess.py", line 951, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "/usr/lib/python3.9/subprocess.py", line 1698, in _execute_child
and os.path.dirname(executable)
File "/usr/lib/python3.9/posixpath.py", line 152, in dirname
p = os.fspath(p)
TypeError: expected str, bytes or os.PathLike object, not list
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
我已经重新运行了几次,仍在虚拟设备中,指定Python3或Python3.9
python3 -m pip install --upgrade google-assistant-sdk[samples]
python3.9 -m pip install --upgrade google-assistant-sdk[samples]
我每次都会遇到相同的错误。
在这一点上,我不确定我能做些什么。
我正在寻找下一步的一些指导。
谢谢 Manderson96
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
尽管它与您上面的问题没有直接相关,但最后一篇文章将其修复了。 1.46/47构建中存在一个问题,您需要进行一些解决方法以安装。使用步骤1和2,其他步骤不适用。
Whilst it's not directly related to your issue above, this post at the end fixed it for me. There is an issue in the 1.46/47 builds, and you need to do some workarounds to install. Use Step 1 and 2, the further steps are not applicable.
https://github.com/home-assistant/core/issues/65837#issuecomment-1173134862