首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >未能将google-助手-sdk[samples]安装到raspberry pi Zero W

未能将google-助手-sdk[samples]安装到raspberry pi Zero W
EN

Stack Overflow用户
提问于 2022-06-29 19:29:34
回答 1查看 153关注 0票数 1

我正在尝试将Google助手安装到一个raspberry pi Zero W。

在最后一步中,它未能完成安装。

我在pi上运行python 3.9.2。Python 3也被加载。

根据安装说明,我已经将以下内容加载到我的per中,作为运行该助手的设置的一部分。

代码语言:javascript
复制
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

代码语言:javascript
复制
source env/bin/activate

在我加载的虚拟env中

代码语言:javascript
复制
sudo apt-get install portaudio19-dev libffi-dev libssl-dev

最后一步需要加载,这是它出错的地方。

代码语言:javascript
复制
python -m pip install --upgrade google-assistant-sdk[samples]

最初,设置似乎进行得很好,然后在下载grpcio-1.47.0.tar.gz之后准备元数据时,子进程退出时会出现错误。

代码语言:javascript
复制
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.

我在虚拟env中重新运行了几次,指定了python3或python3.9

代码语言:javascript
复制
python3 -m pip install --upgrade google-assistant-sdk[samples]

python3.9 -m pip install --upgrade google-assistant-sdk[samples]

我每次都会犯同样的错误。

在这一点上,我不知道我能做什么不同。

我正在寻找一些关于下一步的一些指导。

谢谢manderson96

EN

回答 1

Stack Overflow用户

发布于 2022-07-17 13:36:37

虽然这与你上面的问题没有直接关系,但这篇文章最后为我修正了它。1.46/47构建中存在一个问题,您需要做一些解决方法来安装。使用步骤1和2,以后的步骤不适用。

https://github.com/home-assistant/core/issues/65837#issuecomment-1173134862

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/72806867

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档