1. Start a command line with admin rights.

  2. python -m pip install pywin32

  3. C:\Program Files\Stackless36\Scripts>python pywin32_postinstall.py -install The path C:\Program Files\Stackless36\ should be replaced with the path at which your Python version is installed.

  4. Test (admin rights optional) using python -c "import win32com" or python speak.py

    where speak.py consists of this text:

    import win32com.client
    
    speaker = win32com.client.Dispatch("SAPI.SpVoice")
    speaker.Speak("It works. Hoorah!")
    

Working fine on Python 3.6.4 Stackless 3.1b3 060516 (v3.6.4-slp:9557b2e530, Dec 21 2017, 15:23:10) [MSC v.1900 64 bit (AMD64)] on win32. Vanilla CPython hangs out here:

C:\Users\C\AppData\Local\Programs\Python\Python36-32>python.exe
Python 3.6.5 (v3.6.5:f59c0932b4, Mar 28 2018, 16:07:46) [MSC v.1900 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import win32com.client
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'win32com'
>>> exit()

C:\Users\C\AppData\Local\Programs\Python\Python36-32>python.exe -m pip install pywin32
Collecting pywin32
  Cache entry deserialization failed, entry ignored
  Downloading https://files.pythonhosted.org/packages/d4/2d/b927e61c4a2b0aaaab72c8cb97cf748c319c399d804293164b0c43380d5f/pywin32-223-cp36-cp36m-win32.whl (8.3MB)
    100% |████████████████████████████████| 8.3MB 50kB/s
Installing collected packages: pywin32
Successfully installed pywin32-223
You are using pip version 9.0.3, however version 10.0.1 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
Answer from Cees Timmerman on Stack Exchange
Top answer
1 of 4
36
  1. Start a command line with admin rights.

  2. python -m pip install pywin32

  3. C:\Program Files\Stackless36\Scripts>python pywin32_postinstall.py -install The path C:\Program Files\Stackless36\ should be replaced with the path at which your Python version is installed.

  4. Test (admin rights optional) using python -c "import win32com" or python speak.py

    where speak.py consists of this text:

    import win32com.client
    
    speaker = win32com.client.Dispatch("SAPI.SpVoice")
    speaker.Speak("It works. Hoorah!")
    

Working fine on Python 3.6.4 Stackless 3.1b3 060516 (v3.6.4-slp:9557b2e530, Dec 21 2017, 15:23:10) [MSC v.1900 64 bit (AMD64)] on win32. Vanilla CPython hangs out here:

C:\Users\C\AppData\Local\Programs\Python\Python36-32>python.exe
Python 3.6.5 (v3.6.5:f59c0932b4, Mar 28 2018, 16:07:46) [MSC v.1900 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import win32com.client
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'win32com'
>>> exit()

C:\Users\C\AppData\Local\Programs\Python\Python36-32>python.exe -m pip install pywin32
Collecting pywin32
  Cache entry deserialization failed, entry ignored
  Downloading https://files.pythonhosted.org/packages/d4/2d/b927e61c4a2b0aaaab72c8cb97cf748c319c399d804293164b0c43380d5f/pywin32-223-cp36-cp36m-win32.whl (8.3MB)
    100% |████████████████████████████████| 8.3MB 50kB/s
Installing collected packages: pywin32
Successfully installed pywin32-223
You are using pip version 9.0.3, however version 10.0.1 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
2 of 4
4

Check sys.path to make sure the directory where the module is installed is in there, otherwise you have to add it (google PYTHONPATH windows for some help with that.)

🌐
PyPI
pypi.org › project › pywin32
pywin32 · PyPI
pip install pywin32 Copy PIP instructions · Released: Jun 4, 2026
      » pip install pywin32
    
Published   Jun 04, 2026
Version   312
Discussions

how to install pywin32com.client (win32com) on PyPy?
Hello, I'm a Reddit bot who's here to help people nicely format their coding questions. This makes it as easy as possible for people to read your post and help you. I think I have detected some formatting issues with your submission: Inline formatting (`my code`) used across multiple lines of code. This can mess with indentation. If I am correct, please edit the text in your post and try to follow these instructions to fix up your post's formatting. Am I misbehaving? Have a comment or suggestion? Reply to this comment or raise an issue here . More on reddit.com
🌐 r/learnpython
4
1
June 19, 2022
python - ImportError: No module named win32com.client - Stack Overflow
Could not find a version that satisfies ... (from pypiwin32) ... I realize this post is old but I wanted to add that I had to take an extra step to get this to work. ... I had use use the -m flag to get this to work properly. Without it I was running into an issue where I was still getting the error ImportError: No module named win32com... More on stackoverflow.com
🌐 stackoverflow.com
Win32com.client
Hi everyone I am trying to create a log using win32com.client module - I have installed the module with the following command - pip install pywin32 - Installation was successful. However when I tried to run the below script I get the following error. The Python Win32 extensions for NT (service, ... More on discuss.python.org
🌐 discuss.python.org
11
0
June 18, 2022
Documentation for COM support in pywin32
Here is another source... More on reddit.com
🌐 r/Python
4
12
March 8, 2023
🌐
Reddit
reddit.com › r/learnpython › how to install pywin32com.client (win32com) on pypy?
r/learnpython on Reddit: how to install pywin32com.client (win32com) on PyPy?
June 19, 2022 -

I seem to be able to install it using a normal python installation, but whenever I try any variaton of pypy -m pip install pypiwin32 it fails because one line of code somewhere is written with python 2 print syntax instead of python 3 print syntax.

File "C:\Users\UserName\AppData\Local\Temp\pip-install-s_f16dh8\pypiwin32_cbf43cf3d1b9474da7c0471119c544fe\setup.py", line 121

print "Building pywin32", pywin32_version

^

SyntaxError: Missing parentheses in call to 'print'. Did you mean print("Building pywin32", pywin32_version)?

(Versions are Python 3.8.12 (9ef55f6fc369, Oct 24 2021, 20:12:27)

[PyPy 7.3.7 with MSC v.1929 64 bit (AMD64)] on win32)

🌐
Python.org
discuss.python.org › python help
Win32com.client - Python Help - Discussions on Python.org
June 18, 2022 - Hi everyone I am trying to create a log using win32com.client module - I have installed the module with the following command - pip install pywin32 - Installation was successful. However when I tried to run the below script I get the following error. The Python Win32 extensions for NT (service, ...
🌐
PyPI
pypi.org › project › win32compat
Client Challenge
JavaScript is disabled in your browser · Please enable JavaScript to proceed · A required part of this site couldn’t load. This may be due to a browser extension, network issues, or browser settings. Please check your connection, disable any ad blockers, or try using a different browser
Find elsewhere
🌐
Esri Community
community.esri.com › t5 › python-questions › win32-com-client › td-p › 73379
Solved: Win32.com client - Esri Community
May 31, 2017 - I believe i have download the correct one 'ad3‑2.0.2‑cp27‑cp27m‑win_amd64.whl' now i am trying to install it through pip. when i try to install it i get 'File is not a Zip file'. Can some one be kind engought to guide me though install win32com.client pkg please.
🌐
Reddit
reddit.com › r/python › documentation for com support in pywin32
r/Python on Reddit: Documentation for COM support in pywin32
March 8, 2023 -

I'm looking for good documentation of python's WinAPI COM support.

The most conscise documentation I can find is a chapter in Mark Hammond's "Python Programming On Win32". However, it was published in 2000 and AFAIK never updated since.

The online documentation is quite brief and as dated (e.g. https://mhammond.github.io/pywin32/html/com/win32com/HTML/QuickStartClientCom.html).

Is there anything... better? Fresher?

🌐
Opclabs
opclabs.com › forum › discussions › quickopc-ua in com › general issues, building › win32com.client not found - python
OPC Labs - win32com.client Not Found - Python - OPC Labs Online Forums
September 15, 2018 - I think you need either this: pypi.org/project/pywin32/ or rather this: pypi.org/project/pypiwin32/219/ Instructions: In C:\PythonXX\Scripts, do: pip install pypiwin32 Best regards · Last edit: 15 Sep 2018 06:22 by support. Please Log in or Create an account to join the conversation. ... Using the example Read.Main.py and I am trying to read a tag from our Ignition OPC UA Server. The python file cannot find the library win32com.py so I can't run the file.
🌐
CodeSpeedy
codespeedy.com › home › how to install win32com.client in python
How to install win32com.client in Python | CodeSpeedy
December 25, 2022 - Learn how to install win32com.client in Python. Using this library you can access the windows 32 APIs from python.
🌐
PyPI
pypi.org › project › pypiwin32 › 219
pypiwin32 · PyPI
pip install pypiwin32==219 Copy PIP instructions · Released: Dec 3, 2014
      » pip install pypiwin32
    
Published   Dec 03, 2014
Version   219
🌐
Quora
quora.com › How-do-I-import-win32com-client-in-Python
How to import win32com.client in Python - Quora
Answer: To import any package in python first you have to install that package in your machine . To install the package in python there is utility pip. pip is a package management system used to install and manage software packages written in Python. To install win32com.client in python using p...
🌐
GitHub
github.com › mhammond › pywin32
GitHub - mhammond/pywin32: Python for Windows (pywin32) Extensions · GitHub
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.?
Author   mhammond
🌐
WMI
timgolden.me.uk › pywin32-docs › contents.html
PyWin32 Documentation - Tim Golden
win32com.authorization.authorization · EditSecurity · Objects · COMPONENT · COMPONENTSOPT · COMPPOS · COMPSTATEINFO · DEFCONTENTMENU · ELEMDESC · EXP_DARWIN_LINK · EXP_SPECIAL_FOLDER · EXP_SZ_LINK · FUNCDESC · IDLDESC · MAPIINIT_0 · NT_CONSOLE_PROPS ·
🌐
GitHub
github.com › mhammond › pywin32 › blob › main › com › win32com › client › __init__.py
pywin32/com/win32com/client/__init__.py at main · mhammond/pywin32
>>> ie=win32com.client.Dispatch("InternetExplorer.Application.1") >>> events=InternetExplorerEvents(ie) >>> ie.Visible=1 · Visibility changed: 1 · >>> """ · # find clsid given progid or clsid · clsid = str(pywintypes.IID(clsid)) # return default outgoing interface for that class ·
Author   mhammond