I get error when Ι try to install django in centos 7

Hello,
I get the following warning when I try to install django in virtual environment in centos 7. I use python 3.12 and pip 23.2.1. I would appreciate if someone could help me to solve this issue.

I get the following waring and I can’t install django:
WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘SSLError(“Can’t connect to HTTPS URL because the SSL module is not available.”)’: /simple/django/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘SSLError(“Can’t connect to HTTPS URL because the SSL module is not available.”)’: /simple/django/

Verify that the pyOpenSSL package is installed. (If not, install it with your system’s package manager.)