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.

Docs

The docs are a long and sad story, but there's now an online version of the helpfile that ships with the installers (thanks @ofek!). Lots of that is very old, but some is auto-generated and current. Would love help untangling the docs!

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

Binary releases are deprecated. While they are still provided, find them here

Installing via PIP

You should install pywin32 via pip - eg,

python -m pip install --upgrade 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.

For unreleased changes, you can download builds made by github actions - choose any "workflow" from the main branch and download its "artifacts")

The specified procedure could not be found / Entry-point not found Errors?

A very common report is that people install pywin32, but many imports fail with errors similar to the above.

In almost all cases, this tends to mean there are other pywin32 DLLs installed in your system, but in a different location than the new ones. This sometimes happens in environments that come with pywin32 pre-shipped (eg, anaconda?).

The possible solutions are:

  • Run the "post_install" script documented above.

  • Otherwise, find and remove all other copies of pywintypesXX.dll and pythoncomXX.dll (where XX is the Python version - eg, "39")

Running as a Windows Service

Modern Python installers do not, by default, install Python in a way that is suitable for running as a service, particularly for other users.

  • Ensure Python is installed in a location where the user running the service has access to the installation and is able to load pywintypesXX.dll and pythonXX.dll.

  • Manually copy pythonservice.exe from the site-packages/win32 directory to the same place as these DLLs.

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 305

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 305
File
pywin32-305-cp311-cp311-win_arm64.whl CPython 3.11 CPython 3.11 Windows ARM64 Details
pywin32-305-cp311-cp311-win_amd64.whl CPython 3.11 CPython 3.11 Windows x86-64 Details
pywin32-305-cp311-cp311-win32.whl CPython 3.11 CPython 3.11 Windows x86-32 Details
pywin32-305-cp310-cp310-win_arm64.whl CPython 3.10 CPython 3.10 Windows ARM64 Details
pywin32-305-cp310-cp310-win_amd64.whl CPython 3.10 CPython 3.10 Windows x86-64 Details
pywin32-305-cp310-cp310-win32.whl CPython 3.10 CPython 3.10 Windows x86-32 Details
pywin32-305-cp39-cp39-win_amd64.whl CPython 3.9 CPython 3.9 Windows x86-64 Details
pywin32-305-cp39-cp39-win32.whl CPython 3.9 CPython 3.9 Windows x86-32 Details
pywin32-305-cp38-cp38-win_amd64.whl CPython 3.8 CPython 3.8 Windows x86-64 Details
pywin32-305-cp38-cp38-win32.whl CPython 3.8 CPython 3.8 Windows x86-32 Details
pywin32-305-cp37-cp37m-win_amd64.whl CPython 3.7 CPython 3.7 pymalloc Windows x86-64 Details
pywin32-305-cp37-cp37m-win32.whl CPython 3.7 CPython 3.7 pymalloc Windows x86-32 Details
pywin32-305-cp36-cp36m-win_amd64.whl CPython 3.6 CPython 3.6 pymalloc Windows x86-64 Details
pywin32-305-cp36-cp36m-win32.whl CPython 3.6 CPython 3.6 pymalloc Windows x86-32 Details

Total release size: 161.7 MB

Release files / pywin32-305-cp311-cp311-win_arm64.whl

Download URL pywin32-305-cp311-cp311-win_arm64.whl
Size 11.2 MB
Tags CPython 3.11 Windows ARM64
SHA-256 checksum
How to use checksums
4ecd404b2c6eceaca52f8b2e3e91b2187850a1ad3f8b746d0796a98b4cea04db
BLAKE2b-256 checksum
How to use checksums
a2dfcb14fa23ef0782e62df7b33ea2b926150de3b1d71d2713f434582f8a0024
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-305-cp311-cp311-win_amd64.whl

Download URL pywin32-305-cp311-cp311-win_amd64.whl
Size 12.1 MB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
326f42ab4cfff56e77e3e595aeaf6c216712bbdd91e464d167c6434b28d65990
BLAKE2b-256 checksum
How to use checksums
22da344b3df042f42d9d775ae2030276b2992adab519c6d682393ddf356775f3
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-305-cp311-cp311-win32.whl

Download URL pywin32-305-cp311-cp311-win32.whl
Size 11.0 MB
Tags CPython 3.11 Windows x86-32
SHA-256 checksum
How to use checksums
19ca459cd2e66c0e2cc9a09d589f71d827f26d47fe4a9d09175f6aa0256b51c2
BLAKE2b-256 checksum
How to use checksums
66e80078d6042bf5bce7e2518b32cf1a0c1399a64f91fc280bb1cfda69fcdb35
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-305-cp310-cp310-win_arm64.whl

Download URL pywin32-305-cp310-cp310-win_arm64.whl
Size 11.2 MB
Tags CPython 3.10 Windows ARM64
SHA-256 checksum
How to use checksums
742eb905ce2187133a29365b428e6c3b9001d79accdc30aa8969afba1d8470f4
BLAKE2b-256 checksum
How to use checksums
0519e1f2d772c5437f37c7dbe88be56939de53f040674b6accf2c0369674873d
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-305-cp310-cp310-win_amd64.whl

Download URL pywin32-305-cp310-cp310-win_amd64.whl
Size 12.1 MB
Tags CPython 3.10 Windows x86-64
SHA-256 checksum
How to use checksums
73e819c6bed89f44ff1d690498c0a811948f73777e5f97c494c152b850fad478
BLAKE2b-256 checksum
How to use checksums
028023fdb88f8a398dff615f10100cf54871fd8518e3eeea72c1a7d46af01bf9
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-305-cp310-cp310-win32.whl

Download URL pywin32-305-cp310-cp310-win32.whl
Size 11.0 MB
Tags CPython 3.10 Windows x86-32
SHA-256 checksum
How to use checksums
421f6cd86e84bbb696d54563c48014b12a23ef95a14e0bdba526be756d89f116
BLAKE2b-256 checksum
How to use checksums
65e476dab43949fc3ba9aee8dc0635b299ad09df7813e81aa4adc88e27f463fe
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-305-cp39-cp39-win_amd64.whl

Download URL pywin32-305-cp39-cp39-win_amd64.whl
Size 12.2 MB
Tags CPython 3.9 Windows x86-64
SHA-256 checksum
How to use checksums
50768c6b7c3f0b38b7fb14dd4104da93ebced5f1a50dc0e834594bff6fbe1271
BLAKE2b-256 checksum
How to use checksums
2f02b7ffa4a3f6b7ddf8f08926fc9312856443ec446259d095ae80bbf5d06add
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-305-cp39-cp39-win32.whl

Download URL pywin32-305-cp39-cp39-win32.whl
Size 11.0 MB
Tags CPython 3.9 Windows x86-32
SHA-256 checksum
How to use checksums
9d968c677ac4d5cbdaa62fd3014ab241718e619d8e36ef8e11fb930515a1e918
BLAKE2b-256 checksum
How to use checksums
1e2889edde08f43d3c795a7a950368cb3c811f10ae7cc9f1b862f468c3697e8a
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-305-cp38-cp38-win_amd64.whl

Download URL pywin32-305-cp38-cp38-win_amd64.whl
Size 12.3 MB
Tags CPython 3.8 Windows x86-64
SHA-256 checksum
How to use checksums
56d7a9c6e1a6835f521788f53b5af7912090674bb84ef5611663ee1595860fc7
BLAKE2b-256 checksum
How to use checksums
6d37fb50f89e6f8a420f0f02adbb81cd85de6fd8a4d4c842b721b08bcd533987
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-305-cp38-cp38-win32.whl

Download URL pywin32-305-cp38-cp38-win32.whl
Size 11.1 MB
Tags CPython 3.8 Windows x86-32
SHA-256 checksum
How to use checksums
9dd98384da775afa009bc04863426cb30596fd78c6f8e4e2e5bbf4edf8029504
BLAKE2b-256 checksum
How to use checksums
e3c93ab2df149dc0e0b0ece0513e1650c7e7f26b61b05851853864aa95ff42b9
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-305-cp37-cp37m-win_amd64.whl

Download URL pywin32-305-cp37-cp37m-win_amd64.whl
Size 12.2 MB
Tags CPython 3.7 CPython 3.7 pymalloc Windows x86-64
SHA-256 checksum
How to use checksums
109f98980bfb27e78f4df8a51a8198e10b0f347257d1e265bb1a32993d0c973d
BLAKE2b-256 checksum
How to use checksums
29a944913e2b953a63404f992daa7608f8263fe8ac608dd8c717de5be9d53600
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-305-cp37-cp37m-win32.whl

Download URL pywin32-305-cp37-cp37m-win32.whl
Size 11.1 MB
Tags CPython 3.7 CPython 3.7 pymalloc Windows x86-32
SHA-256 checksum
How to use checksums
a55db448124d1c1484df22fa8bbcbc45c64da5e6eae74ab095b9ea62e6d00496
BLAKE2b-256 checksum
How to use checksums
4be02b1513208a885267f5acef393eb6346062323751769630c071667c904dde
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-305-cp36-cp36m-win_amd64.whl

Download URL pywin32-305-cp36-cp36m-win_amd64.whl
Size 12.2 MB
Tags CPython 3.6 CPython 3.6 pymalloc Windows x86-64
SHA-256 checksum
How to use checksums
13362cc5aa93c2beaf489c9c9017c793722aeb56d3e5166dadd5ef82da021fe1
BLAKE2b-256 checksum
How to use checksums
4baf7c7d46af6bf74a92ecaf674fe9f587912bd74a95eddd9304b4e16b37aa8b
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-305-cp36-cp36m-win32.whl

Download URL pywin32-305-cp36-cp36m-win32.whl
Size 11.1 MB
Tags CPython 3.6 CPython 3.6 pymalloc Windows x86-32
SHA-256 checksum
How to use checksums
48d8b1659284f3c17b68587af047d110d8c44837736b8932c034091683e05863
BLAKE2b-256 checksum
How to use checksums
5c63ff5e909e6718ccf1b7f5b359b12bed40136c9f5d58b749662a592f4e7aa2
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

This release

305 This release

14 release files

304

14 release files

303

12 release files

302

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