Christian Heimes added the comment:
CentOS 7 has an unsupported OpenSSL version. You need to build your own OpenSSL
or use my work from https://github.com/tiran/cpython_builddep/#note
sudo yum install -y epel
sudo yum install -y openssl11-devel
sed -i 's/PKG_CONFIG openssl /PKG_CONFIG
New submission from Alessandro Pioli :
After installation of 3.4.10 with openssl procedure
https://docs.python.org/3/using/unix.html#on-linux
on centos 7.9
pip get this error:
pip3.10 install -r requirements.txt
WARNING: pip is configured with locations that require TLS/SSL, however the ssl