rectangletangle
rectangletangle

Reputation: 53031

Where to find the win32api module for Python?

Many Python scripts and examples contain import win32api. However, from the name it is not directly clear what this library is or which library it is part of. What is the win32api module and where can it be found / how can it be installed?

(NB: This also applies to the win32con and win32file modules.)

Upvotes: 140

Views: 355856

Answers (3)

Andrew Christianson
Andrew Christianson

Reputation: 1990

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

Upvotes: 184

Austin A
Austin A

Reputation: 3148

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

Upvotes: 8

dash-tom-bang
dash-tom-bang

Reputation: 17863

'pywin32' is its canonical name.

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

Upvotes: 123

Related Questions