Red Hat 4.4.7에서는 pip를 사용할 수 없습니다.

Red Hat 4.4.7에서는 pip를 사용할 수 없습니다.

Python 3.7과 pip를 설치했지만 pip를 실행할 때 오류가 발생합니다.

pip3.7 install  django
pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
Collecting django
  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/
  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/
  Retrying (Retry(total=2, 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/
  Retrying (Retry(total=1, 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/
  Retrying (Retry(total=0, 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/
  Could not fetch URL https://pypi.org/simple/django/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/django/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping
  Could not find a version that satisfies the requirement django (from versions: )
No matching distribution found for django
pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
Could not fetch URL https://pypi.org/simple/pip/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/pip/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping

또한 openssl-devel 설치를 시도했습니다.

[email protected] [tmp]# yum install openssl-devel
Loaded plugins: fastestmirror, security, universal-hooks
Setting up Install Process
Loading mirror speeds from cached hostfile
 * EA4: 70.87.220.252
 * cpanel-addons-production-feed: 70.87.220.252
 * cpanel-plugins: 70.87.220.252
Package openssl-devel-1.0.1e-57.el6.x86_64 already installed and latest version
Nothing to do

그러나 이것은 효과가 없습니다.

기본적으로 웹 서버용 django를 설치하려고 하는데 SSL 문제로 인해 이를 방해하고 있습니다. 수정 사항이나 더 나은 경로는 무엇입니까? 내 순진함으로 인해 죄송합니다.

또한 내가 찾은 모든 지침은 Python 2.x 이상 RHEL 버전에 대한 것입니다. 나는 본 적이https://developers.redhat.com/blog/2018/08/13/install-python3-rhel/하지만 해당 서버가 사용 중이기 때문에 시도해보고 아무것도 깨지 않을 만큼 잘 알지 못합니다.

관련 정보