在Windows 7中使用pip安装pywin32在Python 3.4.2中无法工作

22 投票
1 回答
18605 浏览
提问于 2025-04-30 20:07

大家好,

我在Windows 7上用Python 3.4.2通过pip(1.5.6)安装pywin32时,总是遇到以下错误信息:

Could not find any downloads that satisfy the requirement pywin32
Some externally hosted files were ignored (use --allow-external pywin32 to all
ow).
Cleaning up...
No distributions at all found for pywin32
Storing debug log for failure in C:\Users\tonka\pip\pip.log

其他用pip安装的东西都没问题。在pypi.org上有pywin32的包,所以我不太明白为什么会出现这个问题。

我也试过这个--allow-external的选项,但结果出现了以下错误:

Could not find any downloads that satisfy the requirement pywin32
Some insecure and unverifiable files were ignored (use --allow-unverified pywi
n32 to allow).
Cleaning up...
No distributions at all found for pywin32
Storing debug log for failure in C:\Users\tonka\pip\pip.log

然后我用了--allow-unverified的选项,结果又出现了这个错误:

Could not find any downloads that satisfy the requirement pywin32
Cleaning up...
No distributions at all found for pywin32
Storing debug log for failure in C:\Users\tonka\pip\pip.log

请问pip里有适用于3.4的pywin32包吗? pypi链接

有没有人遇到过同样的问题?

补充:

如果有人在找通过pip安装pywin32的方法,可以用pypiwin32这个包,它和pywin32是一样的,但可以通过pip安装。

问候
Tonka

暂无标签

1 个回答

6

关于你第一个问题的回答,似乎没有适用于 Python 3.4 的 pip pywin32 包。如果你查看这个页面:https://pypi.python.org/simple/pywin32/,你会看到一个 214_download_url。这说明版本 214 是最新的可用版本,而这个 214 的下载链接 在这里 并没有提供适用于 Python 3.1 以上的安装程序。

关于你第二个问题的回答,是的,我在 Python 3.4.1 上也遇到了同样的问题。正如 @sk11 在评论中提到的,你可以从 这里 下载一个安装程序。(我不能添加评论,因为我没有足够的声望。)我刚试过这个安装程序,似乎运行得很好。

撰写回答