事の発端はpipでパッケージ入れようとしたところ以下のようなエラーになった。
Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘ProtocolError(‘Connection aborted.’, ConnectionResetError(10054, ‘既存の接続はリモート ホストに強制的に切断されました。’, None, 10054, None))’: /si
mple/scipy/
Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘ProtocolError(‘Connection aborted.’, ConnectionResetError(10054, ‘既存の接続はリモート ホストに強制的に切断されました。’, None, 10054, None))’: /si
mple/scipy/
Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘ProtocolError(‘Connection aborted.’, ConnectionResetError(10054, ‘既存の接続はリモート ホストに強制的に切断されました。’, None, 10054, None))’: /si
mple/scipy/
Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘ProtocolError(‘Connection aborted.’, ConnectionResetError(10054, ‘既存の接続はリモート ホストに強制的に切断されました。’, None, 10054, None))’: /si
mple/scipy/
Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘ProtocolError(‘Connection aborted.’, ConnectionResetError(10054, ‘既存の接続はリモート ホストに強制的に切断されました。’, None, 10054, None))’: /si
mple/scipy/
Could not find a version that satisfies the requirement scipy (from versions: )
No matching distribution found for scipy
SSL証明書周りか?とか思ってtrusted-host指定したりいろいろすると、とりあえずは成功するっぽい。ただし最初数回リトライする。。他には一部サイト( pypi.org など)にHTTPSでアクセスすると切断されて表示できないという現象が。Python関連だけではなさそうで一部見れないサイトとかもあった。
結局原因はIPv6を使用しての接続時に何かしら問題があるようで(とはいえ同じLAN内のiOSや有線なWindowsは問題ないのでこのPC固有の問題ぽいけど)、しょうがないけどpipするときだけIPv4で接続することにする… 根本的にはWindowsをクリーンインストールするのが望ましいのかもしれないけど、、、
参考: Windows 10 1809 x64 JPN