python -m pip install --upgrade pip 解决升级不成功问题
使用pip 提示更新:
You are using pip version
18.1, however version 20.0.2 is available. You should consider upgrading
via the 'python -m pip install --upgrade pip' command
.
输入 python -m pip install --upgrade pip
出现问题
这是因为服务器连接超时,使用下方代码即可解决(因为pip源在国外,所以连起来比较慢,可以改用国内的源)
python -m pip install --upgrade pip -i https://pypi.douban.com/simple
转自https://uzshare.com/view/818532