折腾了很久,终于在3.10上装好了,可是3.11怎么都没弄好。沉淀,过了几个小时,终于想到,还是把3.10删掉吧,或许是系统设置上只能用其中一个了。
卸载后,果然用pip install 就可以安装了。
这是对在虚拟机被华为系统硬件更新后宕机带来的愤怒和无措的补偿。
C:\Users\86150>pip install python-pptx
Collecting python-pptx
Downloading python-pptx-0.6.21.tar.gz (10.1 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 10.1/10.1 MB 10.5 kB/s eta 0:00:00
Preparing metadata (setup.py) ... done
Requirement already satisfied: lxml>=3.1.0 in d:\python3.11\lib\site-packages (from python-pptx) (4.9.2)
Requirement already satisfied: Pillow>=3.3.2 in d:\python3.11\lib\site-packages (from python-pptx) (9.5.0)
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))': /simple/xlsxwriter/
Collecting XlsxWriter>=0.5.7
Downloading XlsxWriter-3.0.9-py3-none-any.whl (152 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 152.8/152.8 kB 10.0 kB/s eta 0:00:00
Installing collected packages: XlsxWriter, python-pptx
DEPRECATION: python-pptx is being installed using the legacy 'setup.py install' method, because it does not have a 'pyproject.toml' and the 'wheel' package is not installed. pip 23.1 will enforce this behaviour change. A possible replacement is to enable the '--use-pep517' option. Discussion can be found at https://github.com/pypa/pip/issues/8559
Running setup.py install for python-pptx ... done
Successfully installed XlsxWriter-3.0.9 python-pptx-0.6.21