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

标签 python pip pywin32

尝试使用 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/

相关文章:

python - 使用AWS CDK将入口规则添加到安全组

python - 基于模型在 Django 中自动生成页脚的正确方法

python - PIP 在 Windows 8 上的何处存储/保存 Python 3 模块/包?

python - 如何使用 Python 创建 Windows 服务

python - 如何在 Python 中检查操作系统是否是 Vista?

python - 带菜单栏的 wx.Panel

python - 提高列表中的性能

系统上的 Python 2.7、PIP 和 Virtualenv 仍在使用 2.6 - 如何将它们切换为使用 2.7

python - 如何为 python 2.6 安装 pip?

python - 无法在 Python 上使用 win32com 完全关闭 Excel