Creative Field Blog

悩まず、使い倒そうよ。

pip install jupyter 実行時エラー

pip install jupyter

実行時に次のようなエラーが発生した場合の対処法。

 

  File "c:\users\xxx\appdata\local\programs\python\python38\lib\site-packages\
pip\_vendor\urllib3\response.py", line 402, in _error_catcher
    raise ReadTimeoutError(self._pool, None, 'Read timed out.')
pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='files
.pythonhosted.org', port=443): Read timed out.
WARNING: You are using pip version 19.2.1, however version 21.3 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' comm
and.

 

 

power shellを開き、下記のコマンドを実行

Set-ExecutionPolicy RemoteSigned -Scope CurrentUser

 

そして、pipを最新化し、再試行すると成功。

pip install -U pip

pip install jupyter