Posted in Python onMarch 05, 2020
据小编统计绝大多数朋友对这一问题很棘手,今天小编给大家分享这一问题的解决方案,一起看看吧
使用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
问题解决
安装其他包也可使用此方法加快下载速度
比如 安装pip install scipy
pip install scipy -i https://pypi.douban.com/simple
安装
C:\WINDOWS\system32>pip install scipy -i https://pypi.douban.com/simple Looking in indexes: https://pypi.douban.com/simple Collecting scipy Downloading https://pypi.doubanio.com/packages/61/51/046cbc61c7607e5ecead6ff1a9453fba5e7e47a5ea8d608cc7036586a5ef/scipy-1.4.1-cp37-cp37m-win_amd64.whl (30.9 MB) |????????????????????????????????| 30.9 MB 6.8 MB/s Collecting numpy>=1.13.3 Downloading https://pypi.doubanio.com/packages/a9/38/f6d6d8635d496d6b4ed5d8ca4b9f193d0edc59999c3a63779cbc38aa650f/numpy-1.18.1-cp37-cp37m-win_amd64.whl (12.8 MB) |????????????????????????????????| 12.8 MB 6.4 MB/s Installing collected packages: numpy, scipy Successfully installed numpy-1.18.1 scipy-1.4.1 C:\WINDOWS\system32>
总结
到此这篇关于解决python -m pip install --upgrade pip 升级不成功问题的文章就介绍到这了,更多相关python -m pip install --upgrade pip 升级失败内容请搜索三水点靠木以前的文章或继续浏览下面的相关文章希望大家以后多多支持三水点靠木!
解决python -m pip install --upgrade pip 升级不成功问题
- Author -
Cement20声明:登载此文出于传递更多信息之目的,并不意味着赞同其观点或证实其描述。
Reply on: @reply_date@
@reply_contents@