前提・実現したいこと
pipenvでdjangoをインストールしようとすると、以下のようなエラーが発生します。
pythonのバージョンが2.7ではじめやっており、その時にはpipenv install djangoでいけました。
しかし、インストールしたのちpython3系でないことに気づきpipfileを削除して3系に変更して同じようにpipenv install djangoを行うと以下のようなエラーが発生しました。
pythonのバージョンの問題でしょうか。
発生している問題・エラーメッセージ
$ (server) bash-3.2$ python --version Python 3.6.5 (server) bash-3.2$ pipenv install django Installing django… Error: An error occurred while installing django! Error text: 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 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/ WARNING: 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/ WARNING: 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/ WARNING: 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/ ERROR: Could not find a version that satisfies the requirement django (from -r /var/folders/zw/pmw75qq169b_m6mqhsl_j1s40000gn/T/pipenv-ex4woyxe-requirements/pipenv-m0pmlbcy-requirement.txt (line 1)) (from versions: none) ERROR: No matching distribution found for django (from -r /var/folders/zw/pmw75qq169b_m6mqhsl_j1s40000gn/T/pipenv-ex4woyxe-requirements/pipenv-m0pmlbcy-requirement.txt (line 1)) ✘ Installation Failed
該当のソースコード
Pipfile
[[source]] name = "pypi" url = "https://pypi.org/simple" verify_ssl = true [dev-packages] [packages] [requires] python_version = "3.6"
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2020/06/06 06:50