在哪里可以找到 Python 的 win32api 模块?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/3580855/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-18 11:48:19  来源:igfitidea点击:

Where to find the win32api module for Python?

pythonwinapi

提问by rectangletangle

I need to download it for Python 2.7, but can't seem to find it...

我需要为 Python 2.7 下载它,但似乎找不到它...

采纳答案by dash-tom-bang

'pywin32' is its canonical name.

'pywin32' 是它的规范名称。

http://sourceforge.net/projects/pywin32/

http://sourceforge.net/projects/pywin32/

回答by Austin A

I've found that UC Irvine has a great collection of python modules, pywin32 (win32api) being one of many listed there. I'm not sure how they do with keeping up with the latest versions of these modules but it hasn't let me down yet.

我发现 UC Irvine 有很多 Python 模块,pywin32 (win32api) 是其中列出的众多模块之一。我不确定他们如何跟上这些模块的最新版本,但它并没有让我失望。

UC Irvine Python Extension Repository - http://www.lfd.uci.edu/~gohlke/pythonlibs

加州大学尔湾分校 Python 扩展库 - http://www.lfd.uci.edu/~gohlke/pythonlibs

pywin32 module - http://www.lfd.uci.edu/~gohlke/pythonlibs/#pywin32

pywin32 模块 - http://www.lfd.uci.edu/~gohlke/pythonlibs/#pywin32

回答by Andrew Christianson

There is a a new option as well: get it via pip! There is a package pypiwin32with wheels available, so you can just install with: pip install pypiwin32!

还有一个新选项:通过 pip 获取!有一个带轮子的包pypiwin32,所以你可以安装:pip install pypiwin32

Edit: Per comment from @movermeyer, the main project now publishes wheels at pywin32, and so can be installed with pip install pywin32

编辑:根据@movermeyer 的评论,主项目现在在pywin32 上发布轮子,因此可以安装pip install pywin32