xiaolin12345 发表于 2021-8-24 23:31:51

模块安装不成功

有些模块安装不成功怎么操作呢?

小甲鱼 发表于 2021-8-24 23:37:15

提示什么呢?

louxinghao 发表于 2021-8-24 23:50:37

小甲鱼 发表于 2021-8-24 23:37
提示什么呢?

逮到大佬~
报错信息发出来才好分析是什么问题

xiaolin12345 发表于 2021-8-24 23:59:26

小甲鱼 发表于 2021-8-24 23:37
提示什么呢?

安装 win32gui模块
最后显示
WARNING: Discarding https://files.pythonhosted.org/packages/58/d8/727d452ea900aa4be08b0e264e4a12d1f04e51b60f46ce01e0996f071f85/win32gui-221.3.tar.gz#sha256=d6ebe58330480bde71ad93c0e67b31b58ec6091e281d944f1cb529f4e9611c00 (from https://pypi.org/simple/win32gui/). Command errored out with exit status 1: 'C:\Users\LIN\AppData\Local\Programs\Python\Python37\python.exe' 'C:\Users\LIN\AppData\Local\Programs\Python\Python37\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py' get_requires_for_build_wheel 'C:\Users\LIN\AppData\Local\Temp\tmpj69_n4n8' Check the logs for full command output.
ERROR: Could not find a version that satisfies the requirement win32gui (from versions: 221.3, 221.4, 221.5)
ERROR: No matching distribution found for win32gui

xiaolin12345 发表于 2021-8-25 00:00:05

xiaolin12345 发表于 2021-8-24 23:59
安装 win32gui模块
最后显示
WARNING: Discarding https://files.pythonhosted.org/packages/58/d8/727 ...

win32con模块和time模块也没法安装

hrpzcf 发表于 2021-8-25 00:15:24

安装win32gui和win32con等:
pip install pywin32 -i https://pypi.tuna.tsinghua.edu.cn/simple

time为标准库,不需要安装

benyazi 发表于 2021-8-25 00:28:17

我经常网络不好导致安装不成功,然后科学上网后就好了!

xiaolin12345 发表于 2021-8-25 00:29:13

hrpzcf 发表于 2021-8-25 00:15
安装win32gui和win32con等:
pip install pywin32 -i https://pypi.tuna.tsinghua.edu.cn/simple



好的,谢谢。
页: [1]
查看完整版本: 模块安装不成功