1
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

pyenv環境でpip install --upgrade pipがSSLエラーしたときの簡潔な対処法

Posted at

THE結論

$ curl https://bootstrap.pypa.io/get-pip.py | python

を実行で解決

以下顛末

pyenvとvirtualenvで新しく環境を作り、必要なパッケージをインストールしようとしたらCould not find a version that satisfies the requirement
pipバージョンの問題だとおもうのでいつものpip install --upgrade pipすると

$ pip install --upgrade pip
Could not fetch URL https://pypi.python.org/simple/pip/: There was a problem confirming the ssl certificate: [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:590) - skipping
Requirement already up-to-date: pip in ./lib/python2.7/site-packages

となりSSLエラー発生。
OpenSSLの再設定、trusted-hostをホワイトリスト形式で設定、などの手があるようだけど未検証。

1
2
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
1
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?