1、出现python -m pip install --upgrade pip 升级不成功问题
C:\WINDOWS\system32>python -m pip install --upgrade pip
Collecting pip
Downloading https://files.pythonhosted.org/packages/54/0c/d01aa759fdc501a58f431eb594a17495f15b88da142ce14b5845662c13f3/pip-20.0.2-py2.py3-none-any.whl (1.4MB)
|█████████ | 399kB 4.1kB/s eta 0:04:14ERROR: Exception:
。。。。。。略
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.1.1, however version 20.0.2 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
就是pip升级pip的时候出现了错误。哈哈哈。
2、问题解决,这是因为服务器连接超时,使用以下代码即可解决
python -m pip install --upgrade pip -i https://pypi.douban.com/simple