132

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

rectangletangle
  • 50,393
  • 94
  • 205
  • 275

3 Answers3

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
  • 6
    For 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
    I wonder why the "pi" in the name :/ – Marcello Romani Jun 15 '16 at 23:57
  • 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
    @MarcelloRomani PyPI - Python Package Index – Smart Manoj May 31 '17 at 12:13
  • 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.

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

dash-tom-bang
  • 17,383
  • 5
  • 46
  • 62
  • 24
    You'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
    No longer on sourceforge: https://github.com/mhammond/pywin32 – onewhaleid Jan 17 '18 at 03:04
  • 2
    I 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