「動かして学ぶ!Python Django開発入門」にて
postgreSQLのドライバとしてpsycopg2をインストールするとあるのですが、
pip install psycopg2-binaryを実行しても下記のようなエラーが表示されます。
どうしてでしょうか。また、解決方法はありますか?
(venv_private_diary) Tmbp:private_diary$ pip install psycopg2-binary pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available. Collecting psycopg2-binary 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/psycopg2-binary/ 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/psycopg2-binary/ 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/psycopg2-binary/ 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/psycopg2-binary/ 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/psycopg2-binary/ Could not fetch URL https://pypi.python.org/simple/psycopg2-binary/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.python.org', port=443): Max retries exceeded with url: /simple/psycopg2-binary/ (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 psycopg2-binary (from versions: ) No matching distribution found for psycopg2-binary You are using pip version 9.0.3, however version 20.1 is available. You should consider upgrading via the 'pip install --upgrade pip' command.
回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2020/05/08 00:48
2020/05/08 01:19