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

しかし、これはうまくいきません。

デフォルトでは、Webサーバー用のdjangoをインストールしようとしていますが、SSLの問題によりこれを妨げています。修正やより良いパスは何ですか?私の無邪気なので申し訳ありません。

また、私が見つけたすべての手順は、Python 2.x以降のRHELバージョンに関するものです。私は見たことがないhttps://developers.redhat.com/blog/2018/08/13/install-python3-rhel/しかし、そのサーバーが使用中なので、試してみて何も壊さないほどよくわかりません。

ベストアンサー1

おすすめ記事