--- lang: ja-jp breaks: true --- # Python `pip list` で、「WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.」と表示された場合の対応 2021-07-22 `pip list`で、下記のエラーが出た場合は、OpenSSLをインストールする。 ```shell= pip list Package Version ---------- ------- pip 21.1.1 setuptools 56.0.0 WARNING: 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 ``` > Download Win32/Win64 OpenSSL > https://slproweb.com/products/Win32OpenSSL.html > > Win64 OpenSSL v1.1.1i > https://slproweb.com/download/Win64OpenSSL-1_1_1i.exe (リンク切れ) > > Win64 OpenSSL v1.1.1k > https://slproweb.com/download/Win64OpenSSL-1_1_1k.exe 標準では、`C:\Program Files\OpenSSL-Win64`にインストールされる。 「The Windows system directory」を選択すれば、環境変数の設定は不要。 ![](https://i.imgur.com/jWxNcXY.png) ###### tags: `Python` `pip` `SSL`