首页 Paddle框架 帖子详情
求助!我在安装paddleSpeech时报错,在Collecting onnx<=1.9.0这里
收藏
快速回复
Paddle框架 其他学习资料 800 1
求助!我在安装paddleSpeech时报错,在Collecting onnx<=1.9.0这里
收藏
快速回复
Paddle框架 其他学习资料 800 1

我的系统环境是linux Ubuntu 22.04.1 LTS

我尝试了如下方案,但是问题没有解决

【解决方案1】:总之,要在 Ubuntu 20.04 中成功安装 onnx,您需要:

1) 安装protobuf-compiler:sudo apt install protobuf-compiler

2) 建立从 python3 到 python 的链接:sudo ln -s /usr/bin/python3 /usr/bin/python

具体报错如下:

Collecting onnx<=1.9.0
Using cached onnx-1.9.0.tar.gz (9.8 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... error
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [17 lines of output]
Traceback (most recent call last):
File "/home/aninwindows/.local/lib/python3.10/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 351, in
main()
File "/home/aninwindows/.local/lib/python3.10/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 333, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "/home/aninwindows/.local/lib/python3.10/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 118, in get_requires_for_build_wheel
return hook(config_settings)
File "/tmp/pip-build-env-74gk__ah/overlay/local/lib/python3.10/dist-packages/setuptools/build_meta.py", line 338, in get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=['wheel'])
File "/tmp/pip-build-env-74gk__ah/overlay/local/lib/python3.10/dist-packages/setuptools/build_meta.py", line 320, in _get_build_requires
self.run_setup()
File "/tmp/pip-build-env-74gk__ah/overlay/local/lib/python3.10/dist-packages/setuptools/build_meta.py", line 483, in run_setup
super(_BuildMetaLegacyBackend,
File "/tmp/pip-build-env-74gk__ah/overlay/local/lib/python3.10/dist-packages/setuptools/build_meta.py", line 335, in run_setup
exec(code, locals())
File "", line 86, in
AssertionError: Could not find "cmake" executable!
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.

0
收藏
回复
全部评论(1)
时间顺序
C
C3P0R2D2
#2 回复于2023-07

 Could not find "cmake" executable!      这行说了报错原因是没有安装 cmake 。

0
回复
需求/bug反馈?一键提issue告诉我们
发现bug?如果您知道修复办法,欢迎提pr直接参与建设飞桨~
在@后输入用户全名并按空格结束,可艾特全站任一用户