Skip to main content

pywin32

CI PyPI - Version PyPI - Python Version PyPI - Downloads License - PSF-2.0


This is the readme for the Python for Win32 (pywin32) extensions, which provides access to many of the Windows APIs from Python.

See CHANGES.txt for recent notable changes.

Only Python 3 is supported. If you want Python 2 support, you want build 228.

Support

Feel free to open issues for all bugs (or suspected bugs) in pywin32. pull-requests for all bugs or features are also welcome.

However, please do not open github issues for general support requests, or for problems or questions using the modules in this package - they will be closed. For such issues, please email the python-win32 mailing list - note that you must be subscribed to the list before posting.

Binaries

By far the easiest way to use pywin32 is to grab binaries from the most recent release

Installing via PIP

You can install pywin32 via pip:

pip install pywin32

If you encounter any problems when upgrading (eg, "module not found" errors or similar), you should execute:

python Scripts/pywin32_postinstall.py -install

This will make some small attempts to cleanup older conflicting installs.

Note that if you want to use pywin32 for "system wide" features, such as registering COM objects or implementing Windows Services, then you must run that command from an elevated (ie, "Run as Administrator) command prompt.

Building from source

Building from source has been simplified recently - you just need Visual Studio and the Windows 10 SDK installed (the free compilers probably work too, but haven't been tested - let me know your experiences!)

setup.py is a standard distutils build script. You probably want:

python setup.py install

or

python setup.py --help

You can run setup.py without any arguments to see specific information about dependencies. A vanilla MSVC installation should be able to build most extensions and list any extensions that could not be built due to missing libraries - if the build actually fails with your configuration, please open an issue.

Release process

The following steps are performed when making a new release - this is mainly to form a checklist so mhammond doesn't forget what to do :)

  • Ensure CHANGES.txt has everything worth noting, commit it.

  • Update setup.py with the new build number.

  • Execute build.bat, wait forever, test the artifacts.

  • Upload .whl artifacts to pypi - we do this before pushing the tag because they might be rejected for an invalid README.md. Done via py -3.5 -m twine upload dist/*XXX*.whl.

  • Commit setup.py (so the new build number is in the repo), create a new git tag

  • Upload the .exe installers to github.

  • Update setup.py with the new build number + ".1" (eg, 123.1), to ensure future test builds aren't mistaken for the real release.

  • Make sure everything is pushed to github, including the tag (ie, git push --tags)

  • Send mail to python-win32

Release files for pywin32 302

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distributions (wheels)

Table of built distributions (wheels) for pywin32 302
File
pywin32-302-cp310-cp310-win_amd64.whl CPython 3.10 CPython 3.10 Windows x86-64 Details
pywin32-302-cp310-cp310-win32.whl CPython 3.10 CPython 3.10 Windows x86-32 Details
pywin32-302-cp39-cp39-win_amd64.whl CPython 3.9 CPython 3.9 Windows x86-64 Details
pywin32-302-cp39-cp39-win32.whl CPython 3.9 CPython 3.9 Windows x86-32 Details
pywin32-302-cp38-cp38-win_amd64.whl CPython 3.8 CPython 3.8 Windows x86-64 Details
pywin32-302-cp38-cp38-win32.whl CPython 3.8 CPython 3.8 Windows x86-32 Details
pywin32-302-cp37-cp37m-win_amd64.whl CPython 3.7 CPython 3.7 pymalloc Windows x86-64 Details
pywin32-302-cp37-cp37m-win32.whl CPython 3.7 CPython 3.7 pymalloc Windows x86-32 Details
pywin32-302-cp36-cp36m-win_amd64.whl CPython 3.6 CPython 3.6 pymalloc Windows x86-64 Details
pywin32-302-cp36-cp36m-win32.whl CPython 3.6 CPython 3.6 pymalloc Windows x86-32 Details

Total release size: 92.5 MB

Release files / pywin32-302-cp310-cp310-win_amd64.whl

Download URL pywin32-302-cp310-cp310-win_amd64.whl
Size 9.2 MB
Tags CPython 3.10 Windows x86-64
SHA-256 checksum
How to use checksums
79cf7e6ddaaf1cd47a9e50cc74b5d770801a9db6594464137b1b86aa91edafcc
BLAKE2b-256 checksum
How to use checksums
69c74928e67c9ce73348c2ac121df55811a718d7185d748a9a376695b2c39d7e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.5.3+

Release files / pywin32-302-cp310-cp310-win32.whl

Download URL pywin32-302-cp310-cp310-win32.whl
Size 8.4 MB
Tags CPython 3.10 Windows x86-32
SHA-256 checksum
How to use checksums
251b7a9367355ccd1a4cd69cd8dd24bd57b29ad83edb2957cfa30f7ed9941efa
BLAKE2b-256 checksum
How to use checksums
aadedf415649e1caf8cbd703ac65696230d38fc2cbf6fdbe597d84c57c82d323
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.5.3+

Release files / pywin32-302-cp39-cp39-win_amd64.whl

Download URL pywin32-302-cp39-cp39-win_amd64.whl
Size 9.3 MB
Tags CPython 3.9 Windows x86-64
SHA-256 checksum
How to use checksums
af5aea18167a31efcacc9f98a2ca932c6b6a6d91ebe31f007509e293dea12580
BLAKE2b-256 checksum
How to use checksums
0adb6772985c99b5770875b677163de3be6f83b91b8791fddfc6f251f6bf5ce4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.5.3+

Release files / pywin32-302-cp39-cp39-win32.whl

Download URL pywin32-302-cp39-cp39-win32.whl
Size 8.5 MB
Tags CPython 3.9 Windows x86-32
SHA-256 checksum
How to use checksums
2393c1a40dc4497fd6161b76801b8acd727c5610167762b7c3e9fd058ef4a6ab
BLAKE2b-256 checksum
How to use checksums
fd981c57a1e0f0f2a7204189f18f9fd4ce46e87e4c8996968dae58febc4cea92
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.5.3+

Release files / pywin32-302-cp38-cp38-win_amd64.whl

Download URL pywin32-302-cp38-cp38-win_amd64.whl
Size 9.3 MB
Tags CPython 3.8 Windows x86-64
SHA-256 checksum
How to use checksums
543552e66936378bd2d673c5a0a3d9903dba0b0a87235ef0c584f058ceef5872
BLAKE2b-256 checksum
How to use checksums
b1e6ddf43219ac2b2145b73bb7dc2163abbf0ea83a6d01ff7284b053eaf531e7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.5.3+

Release files / pywin32-302-cp38-cp38-win32.whl

Download URL pywin32-302-cp38-cp38-win32.whl
Size 8.5 MB
Tags CPython 3.8 Windows x86-32
SHA-256 checksum
How to use checksums
e372e477d938a49266136bff78279ed14445e00718b6c75543334351bf535259
BLAKE2b-256 checksum
How to use checksums
2d381adf3b5e97f315bb439501ef08f8ccc0ee066e2dff497e1082f8dc62b137
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.5.3+

Release files / pywin32-302-cp37-cp37m-win_amd64.whl

Download URL pywin32-302-cp37-cp37m-win_amd64.whl
Size 9.2 MB
Tags CPython 3.7 CPython 3.7 pymalloc Windows x86-64
SHA-256 checksum
How to use checksums
496df89f10c054c9285cc99f9d509e243f4e14ec8dfc6d78c9f0bf147a893ab1
BLAKE2b-256 checksum
How to use checksums
066bec826577b89db0b90dbe1f01165d0694bed605c1b2843195b3356140472f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.5.3+

Release files / pywin32-302-cp37-cp37m-win32.whl

Download URL pywin32-302-cp37-cp37m-win32.whl
Size 8.5 MB
Tags CPython 3.7 CPython 3.7 pymalloc Windows x86-32
SHA-256 checksum
How to use checksums
48dd4e348f1ee9538dd4440bf201ea8c110ea6d9f3a5010d79452e9fa80480d9
BLAKE2b-256 checksum
How to use checksums
c63ee81f822cd24fda9268eb77f5c30199084f860ad9a7731978e95eaceb5d9e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.5.3+

Release files / pywin32-302-cp36-cp36m-win_amd64.whl

Download URL pywin32-302-cp36-cp36m-win_amd64.whl
Size 11.5 MB
Tags CPython 3.6 CPython 3.6 pymalloc Windows x86-64
SHA-256 checksum
How to use checksums
d3761ab4e8c5c2dbc156e2c9ccf38dd51f936dc77e58deb940ffbc4b82a30528
BLAKE2b-256 checksum
How to use checksums
3ca50acb70bd455a03da901d418e5f4fe4be99bbd762519193bbd3705bec0305
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.5.3+

Release files / pywin32-302-cp36-cp36m-win32.whl

Download URL pywin32-302-cp36-cp36m-win32.whl
Size 10.3 MB
Tags CPython 3.6 CPython 3.6 pymalloc Windows x86-32
SHA-256 checksum
How to use checksums
fe21c2fb332d03dac29de070f191bdbf14095167f8f2165fdc57db59b1ecc006
BLAKE2b-256 checksum
How to use checksums
24e48cfef4a67b5e985323761c894d94584817029b405969a00a2f265dfba943
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.5.3+

Release history Release notifications | RSS feed

312

21 release files

311

20 release files

310

16 release files

309

16 release files

308

18 release files

307

18 release files

306

14 release files

305

14 release files

304

14 release files

303

12 release files

This release

302 This release

10 release files

301

10 release files

300

10 release files

228

12 release files

227

12 release files

226

12 release files

225

12 release files

224

8 release files

223

8 release files

222

7 release files

214

210

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page