pip升级 python -m pip install -U pip setuptools 报错

python -m pip install -U pip setuptools 一直报错


问题描述

ERROR: Exception:
Traceback (most recent call last):
  File "D:\Anaconda3\lib\site-packages\pip\_vendor\urllib3\response.py", line 435, in _error_catcher
    yield
  File "D:\Anaconda3\lib\site-packages\pip\_vendor\urllib3\response.py", line 516, in read
    data = self._fp.read(amt) if not fp_closed else b""
  File "D:\Anaconda3\lib\site-packages\pip\_vendor\cachecontrol\filewrapper.py", line 90, in read

原因分析:

外网源问题


解决方案:

python -m pip install --upgrade pip -i https://pypi.douban.com/simple

你可能感兴趣的:(python,pip)