Unable to import modules in python 3.11 using PIP

Unable to import modules in python 3.11 using PIP in Centos 7. We know its an open issue from Python 3.10. Is there any alternative way to overcome this issue?
We are getting “TLS/SSL error, ssl module in Python is not available”
https://bugs.python.org/issue47201

The issue has been migrated to Github and closed: pip3.10.4 is configured with locations that require TLS/SSL, however the ssl module in Python is not available · Issue #91357 · python/cpython · GitHub

The solution on Centos is to build openssl from source, then build Python from source with using that version of openssl.