Python 3.6 安装 win32api? [英] Python 3.6 install win32api?
问题描述
有没有办法为 python 3.6 安装 win32api 模块,或者我必须更改我的 python 版本?每次我尝试使用 pip 安装它时,都会出现以下错误:
找不到满足 win32api 要求的版本(来自版本:)找不到与 win32api 匹配的分布
@Gord 提供的信息
截至 2019 年 9 月 pywin32
现在可从 PyPI 获得并安装最新版本(当前版本 224).这是通过 pip
命令
pip install pywin32
如果您希望获得旧版本,下面的 sourceforge 链接可能包含所需的版本,如果没有,您可以使用该命令,其中 xxx
是您需要的版本,例如224
pip install pywin32==xxx
这与下面的 pip
命令不同,因为它使用了 pypiwin32
,它当前安装了较旧的(即 223)
浏览文档我认为这些命令没有理由适用于所有 python3.x
版本,我不确定 python2.7
及以下版本,所以你必须尝试它们,如果它们不起作用,那么下面的解决方案将起作用.
现在可能是不受欢迎的解决方案,但肯定在 2019 年 9 月仍然有效
没有特定版本的win32api
.您必须获得当前无法通过pip
安装的pywin32
模块.目前仅可从此链接获得.
https://sourceforge.net/projects/pywin32/files/pywin32/Build%20220/
安装不需要很长时间,而且几乎都为您完成了.只需确保根据您的 python
版本获得正确的版本:)
编辑
自从我发布了我的答案后,还有其他方法可以下载 win32api
模块.
现在可以使用这个命令通过pip
下载;
pip install pypiwin32
<小时>
也可以从这个 GitHub 存储库安装,如@Heath 评论中提供的>
Is there a way to install the win32api module for python 3.6 or do I have to change my version of python? Everytime I try to install it using pip I get the following error:
Could not find a version that satisfies the requirement win32api (from versions: )
No matching distribution found for win32api
Information provided by @Gord
As of September 2019 pywin32
is now available from PyPI and installs the latest version (currently version 224). This is done via the pip
command
pip install pywin32
If you wish to get an older version the sourceforge link below would probably have the desired version, if not you can use the command, where xxx
is the version you require, e.g. 224
pip install pywin32==xxx
This differs to the pip
command below as that one uses pypiwin32
which currently installs an older (namely 223)
Browsing the docs I see no reason for these commands to work for all python3.x
versions, I am unsure on python2.7
and below so you would have to try them and if they do not work then the solutions below will work.
Probably now undesirable solutions but certainly still valid as of September 2019
There is no version of specific version ofwin32api
. You have to get the pywin32
module which currently cannot be installed via pip
. It is only available from this link at the moment.
https://sourceforge.net/projects/pywin32/files/pywin32/Build%20220/
The install does not take long and it pretty much all done for you. Just make sure to get the right version of it depending on your python
version :)
EDIT
Since I posted my answer there are other alternatives to downloading the win32api
module.
It is now available to download through pip
using this command;
pip install pypiwin32
Also it can be installed from this GitHub repository as provided in comments by @Heath
这篇关于Python 3.6 安装 win32api?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!