博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Python环境更新pip模块失败
阅读量:5288 次
发布时间:2019-06-14

本文共 1391 字,大约阅读时间需要 4 分钟。

C:\Users\pc>pip show pip

Name: pip

Version: 10.0.1
Summary: The PyPA recommended tool for installing Python packages.
Home-page: https://pip.pypa.io/
Author: The pip developers
Author-email: python-virtualenv@groups.google.com
License: MIT
Location: c:\users\pc\appdata\local\programs\python\python37\lib\site-packages
Requires:
Required-by:
You are using pip version 10.0.1, however version 19.0.3 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.

C:\Users\pc>python -m pip install --upgrade pip

Collecting pip

Downloading https://files.pythonhosted.org/packages/d8/f3/413bab4ff08e1fc4828dfc59996d721917df8e8583ea85385d51125dceff/pip-19.0.3-py2.py3-none-any.whl (1.4MB)
File "C:\Users\pc\AppData\Local\Programs\Python\Python37\lib\site-packages\pip\_vendor\urllib3\response.py", line 307, 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.
You are using pip version 10.0.1, however version 19.0.3 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.

 

 

以上是更新pip的报错场景,解决方案:更新指令替换为python -m pip install -U --force-reinstall pip

这个命令好像也可以:python -m pip install -U pip setuptools

具体两个命令有什么区别,还未测试过

 

转载于:https://www.cnblogs.com/kimsbo/p/10713160.html

你可能感兴趣的文章
2017-05-18
查看>>
移动端压缩并ajax上传图片解决方案
查看>>
python带header
查看>>
如何用listview显示服务端数据
查看>>
paip.输入法英文词库的处理 python 代码 o4
查看>>
atitit agt sys 设置下级代理功能设计.docx
查看>>
HTML5 Canvas——基础入门
查看>>
SQL、LINQ、Lambda 三种用法(转)
查看>>
虚拟DOM
查看>>
IClient for js开发之地图的加载
查看>>
用css画三角形(提示框三角形)
查看>>
Uber中国在地方城市的人员架构是怎样的?
查看>>
再来一篇装逼老文章:屏幕传输算法
查看>>
Delphi 7下最小化到系统托盘
查看>>
抖动代码
查看>>
lsblk请参阅块设备
查看>>
SVM-SVM概述
查看>>
STL algorithm算法lower_bound和upper_bound(31)
查看>>
linux系统下怎么安装.deb文件?
查看>>
javascript常见编程模式举例
查看>>