使用官方一键安装脚本报错cffi问题

环境是 ubuntu20.04 标准安装版,软件都是默认的 其他的啥也没动,直接运行一键安装脚本,安装的9.0.0版本

中间的时候报错
Building wheels for collected packages: cffi
Building wheel for cffi (setup.py) … error
error: subprocess-exited-with-error

× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [56 lines of output]
running bdist_wheel

巴拉巴拉下面一堆都是围绕cffi的报错,
最后结尾的报错是
| ^~~~~~~~~~~~~~~~
error: command ‘/usr/bin/x86_64-linux-gnu-gcc’ failed with exit code 1
[end of output]

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

× Encountered error while trying to install package.
╰─> cffi

求解决办法啊,搞了一天了。

建议使用docker