gpt4 book ai didi

python - 安装pypiwin32后不满足pywin32要求

转载 作者:太空宇宙 更新时间:2023-11-04 00:35:59 27 4
gpt4 key购买 nike

尝试使用 pip 为 Python 2.7.13 (windows x64) 安装 pyad 包。需求中有pywin32包,所以报错:

C:\Windows\system32>pip install pyad
Collecting pyad
Using cached pyad-0.5.16.tar.gz
Requirement already satisfied: setuptools in c:\python27\lib\site-packages (from pyad)
Collecting pywin32 (from pyad)
Could not find a version that satisfies the requirement pywin32 (from pyad) (from versions: )
No matching distribution found for pywin32 (from pyad)

然后我安装 pypiwin32,它曾经在这种情况下工作:

C:\Windows\system32>pip install pypiwin32
Collecting pypiwin32
Using cached pypiwin32-219-cp27-none-win32.whl
Installing collected packages: pypiwin32
Successfully installed pypiwin32-219

但在这之后我仍然无法安装 pyad 并出现与上述相同的错误,例如 pypiwin32 从未安装过:

C:\Windows\system32>pip install pyad
Collecting pyad
Using cached pyad-0.5.16.tar.gz
Requirement already satisfied: setuptools in c:\python27\lib\site-packages (from pyad)
Collecting pywin32 (from pyad)
Could not find a version that satisfies the requirement pywin32 (from pyad) (from versions: )
No matching distribution found for pywin32 (from pyad)

文件夹 C:\Python27\Lib\site-packages\pywin32_system32 存在,似乎安装了 pypiwin32 包。

有什么解决办法吗?

最佳答案

您遇到的是pywin32安装问题,这是一个二进制轮。

您可以下载pywin32 的二进制轮here .你安装它

pip install pywin32-221-cp27-cp27m-win32.whl

如果是你下载的文件

根据您的安装选择正确的版本(Python 版本和 32/64 位 Python 版本)

可以有详细说明here

关于python - 安装pypiwin32后不满足pywin32要求,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44030663/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com