惊!小白两年后重启python 结果吃了当头一棒!
搭班护士姐姐最近要自考,看她辛苦于是答应给她做一套题库,咸鱼上买一堆word,然后收集起来整理格式。
天真地pip install python-docx
C:\Users\Com>pip install python-docx
然后,果然你!
就知道
因为我把你搁置在小黄盘里两年,看我不爽了是吧
Collecting python-docx
Using cached https://files.pythonhosted.org/packages/e4/83/c66a1934ed5ed8ab1dbb9931f1779079f8bca0f6bbc5793c06c4b5e7d671/python-docx-0.8.10.tar.gz
Collecting lxml>=2.3.2 (from python-docx)
Could not find a version that satisfies the requirement lxml>=2.3.2 (from python-docx) (from versions: )
No matching distribution found for lxml>=2.3.2 (from python-docx)
卍佛卍佛卍佛卍佛卍佛卍佛卍佛卍佛卍佛卍佛卍佛卍佛卍佛卍佛卍佛卍佛卍
佛 分析1: 佛
卍 1.19年的包太旧 卍
佛 2.网路要么没连上,要么慢 佛
卍佛卍佛卍佛卍佛卍佛卍佛卍佛卍佛卍佛卍佛卍佛卍佛卍佛卍佛卍佛卍佛卍
-
第一步:先点根烟
-
第二步:重启电脑,重连网络
-
第三步:升级pip,以及检查lxml版本
这是重启后输入的升级命令,我怒了
python -m pip install --upgrade pip
C:\Users\Com>python -m pip install --upgrade pip
Collecting pip
Downloading https://files.pythonhosted.org/packages/fe/ef/60d7ba03b5c442309ef42e7d69959f73aacccd0d86008362a681c4698e83/pip-21.0.1-py3-none-any.whl (1.5MB)
18% |██████ | 286kB 3.0kB/s eta 0:06:59
**中间忽略**
pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read timed out.
You are using pip version 19.0.3, however version 21.0.1 is available.
You should consider upgrading via the 'python -m