I need to download it for Python 2.7, but can't seem to find it...
Asked
Active
Viewed 3.2e+01k times
132
-
217Ironically, googling "python win32api" now leads to this page. – Mark Jun 03 '13 at 14:15
-
9it almost like a loop that never ends – Jayson Ragasa Jun 18 '15 at 14:53
3 Answers
179
There is a a new option as well: get it via pip! There is a package pypiwin32 with wheels available, so you can just install with: 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

Andrew Christianson
- 1,930
- 2
- 11
- 8
-
6For those like me getting "Access denied" errors while installing, try ``python -m pip install pypiwin32`` as suggested by [this SO thread](http://stackoverflow.com/questions/31172719/pip-install-access-denied-on-windows/31183559). – Jun 14 '16 at 08:48
-
4
-
5@MarcelloRomani, probably to indicate that it's the version hosted on pypi, as opposed to the version hosted on sourceforge. I'm only guessing though. – John Sep 23 '16 at 12:49
-
4
-
As of 2017-11-11, the project [moved to GitHub](https://github.com/mhammond/pywin32) and publishes wheels at `pywin32`, which should probably be considered the new correct answer. – movermeyer Sep 07 '18 at 12:26
-
Does this work in Python 2.7? I installed it via pip but still get the same error – szx Feb 09 '19 at 15:06
-
Does it make a difference when you install with pip as opposed to through your typical point and click IDE ui? – Christina Zhou Dec 04 '19 at 17:45
118
'pywin32' is its canonical name.

dash-tom-bang
- 17,383
- 5
- 46
- 62
-
24You'll find this module on PyPI under the name `pypiwin32`: https://pypi.python.org/pypi/pypiwin32 – Epoc Mar 29 '17 at 13:00
-
15"Stupid and obnoxious" is a comment probably best directed at the folks who are forcing you to use this software that others have spent many years developing to make available to you for free. – dash-tom-bang Oct 06 '17 at 20:29
-
8
-
2I got a weird DLL error when installing this with pip. Installing pypiwin32, as suggested by Drew Christianson's answer, worked better for me. https://stackoverflow.com/posts/31348620/revisions – Pro Q Feb 23 '18 at 23:43
8
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 Extension Repository - http://www.lfd.uci.edu/~gohlke/pythonlibs
pywin32 module - http://www.lfd.uci.edu/~gohlke/pythonlibs/#pywin32

Austin A
- 2,990
- 6
- 27
- 42