認証が必要なプロキシ環境下で、設定が不十分なまま?
pipによりライブラリをインストールしようとしたときに発生したエラーと思われる。
「思われる」としたのは、解決できていないので。。。
PyCharm で Anaconda3のPythonを使おうとして発生していました。
PyCharm と デフォルトのPythonでは発生していません。
環境
PyCharm & Anaconda3
PyCharm 2019.1.1 (Professional Edition)
Build #PY-191.6605.12, built on April 3, 2019
Licensed to PyCharm Evaluator
Expiration date: May 22, 2019
JRE: 11.0.2+9-b159.34 amd64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Windows 10 10.0Anaconda3-2019.03
※PyCharm の File -> Setting -> Project: untitled -> Project Interpreter で、Anaconda環境を使うように設定
結果
$ pip install pdfminer.six
Collecting pdfminer.six
Could not fetch URL https://pypi.org/simple/pdfminer-six/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/pdfminer-six/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping
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
pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
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/pdfminer-six/
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/pdfminer-six/
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/pdfminer-six/
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/pdfminer-six/
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/pdfminer-six/
Could not find a version that satisfies the requirement pdfminer.six (from versions: )
No matching distribution found for pdfminer.six
pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
コメント