python 3.10.5 编译问题

Centos 7 、Centos9 编译 python3.10.5时报错
从python官网下载最新的源码包,3.10.5解压,运行 configrue make 执行正常,make install 时报下面的错误
File "/root/Python-3.10.5/Lib/subprocess.py", line 524, in run
raise CalledProcessError(retcode, process.args,

subprocess.CalledProcessError: Command '['/root/Python-3.10.5/python', '-W', 'ignore::DeprecationWarning', '-c', '\nimport runpy\nimport sys\nsys.path = ['/tmp/tmpfrbobcb8/setuptools-58.1.0-py3-none-any.whl', '/tmp/tmpfrbobcb8/pip-22.0.4-py3-none-any.whl'] + sys.path\nsys.argv[1:] = ['install', '--no-cache-dir', '--no-index', '--find-links', '/tmp/tmpfrbobcb8', '--root', '/', '--upgrade', 'setuptools', 'pip']\nrunpy.run_module("pip", run_name="main", alter_sys=True)\n']' returned non-zero exit status 1.
make: *** [install] Error 1

尝试查看源码,没有解决思路

if check and retcode:
raise CalledProcessError(retcode, process.args,
output=stdout, stderr=stderr)

期望帮忙,期待编译成功

yum -y install openssl openssl-devel

问题解决