LoginSignup
0
0

More than 3 years have passed since last update.

pip がエラー吐く! SSL が何とか言ってるけど... (windows環境)

Posted at
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/tf-nightly-gpu/
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/tf-nightly-gpu/
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/tf-nightly-gpu/
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/tf-nightly-gpu/
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/tf-nightly-gpu/
Could not fetch URL https://pypi.org/simple/tf-nightly-gpu/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/tf-nightly-gpu/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping

同じエラーにあってる方がいるようで、私はこれで解決しました、というのをいくつか試しました。

  • python を入れなおす
  • pip を入れなおす
  • libsslのなんかのdllをpathの上位のほうに持ってくる

私が解消したのは、「OpenSSL 単体を入れなおす」でした。
本家、https://slproweb.com/products/Win32OpenSSL.html からとってきました。lite版とfullがありますが、うちは、liteで行けました。

python 入れ直しとかよりも簡単と思いますのでお試しあれ...

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0