[image] Dave: would you say that win32evtlogutil and win32evtlog are installed or not? These are not packages to be installed. These are modules which according to the code I linked in my previous message seem to be expected to be present and the documentation suggests that they should be pro… Answer from vbrozik on discuss.python.org
🌐
Practical Business Python
pbpython.com › windows-com.html
Automating Windows Applications Using COM - Practical Business Python
July 2, 2018 - import win32com.client as win32 import pandas as pd from pathlib import Path # Read in the remote data file df = pd.read_csv("https://github.com/chris1610/pbpython/blob/master/data/sample-sales-tax.csv?raw=True") # Define the full path for the ...
🌐
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, ...
Discussions

What do you use Win32com for?
I've used it to pull information out of outlook (since I didn't have the email server information). And as you mentioned I've also used it to manipulate excel. In regards to the tutorials - I don't have any. Sorry my friend :( More on reddit.com
🌐 r/learnpython
13
2
June 4, 2020
python - No module named win32com - Stack Overflow
I've just installed Python for the first time and I'm trying to reference the win32com module however, whenever I try to import it I get the message "no module name win32com". Any ideas? More on stackoverflow.com
🌐 stackoverflow.com
python - Installed pywin 32 -- still getting error -- "No module named win32com.client." - Geographic Information Systems Stack Exchange
I'm trying to install pywin32 (32 bit 2.7) so that I can run python from ArcGIS 10.2.1 (32 bit), and have access to the pywin modules. But I am getting the error "No module named win32com.client." I More on gis.stackexchange.com
🌐 gis.stackexchange.com
December 19, 2017
Documentation for COM support in pywin32
Here is another source... More on reddit.com
🌐 r/Python
4
12
March 8, 2023
🌐
WMI
timgolden.me.uk › pywin32-docs › html › com › win32com › HTML › QuickStartClientCom.html
Quick Start to Client side COM and Python
The functions GetModuleForCLSID ... the docstrings in the gencache code for more details. ... Run 'win32com\client\makepy.py' (eg, run it from the command window, or double-click on it) and a list will be presented....
🌐
Reddit
reddit.com › r/learnpython › what do you use win32com for?
r/learnpython on Reddit: What do you use Win32com for?
June 4, 2020 -

(I've used python for a couple of years, but am no means an expert.)

I saw the Win32com package in a stackoverflow question, so I started poking around to learn more about it. It looks like you can use it to manipulate Excel and create text-to-speech. But the examples and documentation that I've found are few and far between.

I was curious to know what members of this community use Win32com for.

And are there any good tutorials/YouTube videos on how to use it?

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.)

🌐
O'Reilly
oreilly.com › library › view › python-programming-on › 1565926218 › ch12s02.html
12.2. Python and COM - Python Programming On Win32 [Book]
January 24, 2000 - 3.1.3.1. Running Python programs3.1.3.2. Command-line editing3.1.3.3.
Authors   Andy RobinsonMark Hammond
Published   2000
Pages   672
Find elsewhere
🌐
PyPI
pypi.org › project › pywin32
pywin32 · PyPI
This is the readme for the Python for Win32 (pywin32) extensions, which provides access to many of the Windows APIs from Python, including COM support.
      » pip install pywin32
    
Published   Jun 04, 2026
Version   312
🌐
YouTube
youtube.com › playlist
Python - Win32COM - Core Concepts - YouTube
Share your videos with friends, family, and the world
🌐
GitHub
github.com › mhammond › pywin32 › blob › main › com › win32com › client › __init__.py
pywin32/com/win32com/client/__init__.py at main · mhammond/pywin32
oobj = pythoncom.new(self.CLSID) self.__dict__["_dispobj_"] = self.default_interface(oobj) · def __repr__(self): return f"<win32com.gen_py.{__doc__}.{self.__class__.__name__}>" · def __getattr__(self, attr): d = self.__dict__["_dispobj_"] if d is not None: return getattr(d, attr) raise AttributeError(attr) ·
Author   mhammond
🌐
Medium
medium.com › @balakrishna0106 › automating-outlook-effortless-email-retrieval-using-pythons-win32com-client-796b13746ad9
Automating Outlook: Effortless Email Retrieval using Python’s win32com.client | by Balakrishna | Medium
April 16, 2024 - Hello, Friend! Today, in this tutorial we’re going to learn automating Outlook with Python, specifically exploring how to effortlessly read Outlook emails using the powerful win32com.client.
🌐
GitHub
github.com › mhammond › pywin32 › releases
Releases · mhammond/pywin32
There is one binary per-version, per-bittedness. To determine what version of Python you have, start Python and look at the first line of the banner.
Author   mhammond
🌐
Psspy
psspy.org › psse-help-forum › question › 3564 › python-win32com
Python win32com - Python for PSSE help forum
I run program automation file,but ... last): File "C:\Program Files (x86)\PTI\PSSE33\EXAMPLE\pout_excel.py", line 70, in <module> import win32com.client File "C:\Python27\lib\site-packages\win32com\__init__.py", line 5, in <module> import win32api, sys, os ImportError: DLL ...
🌐
Stack Exchange
gis.stackexchange.com › questions › 265905 › installed-pywin-32-still-getting-error-no-module-named-win32com-client
python - Installed pywin 32 -- still getting error -- "No module named win32com.client." - Geographic Information Systems Stack Exchange
December 19, 2017 - I'm trying to install pywin32 (32 bit 2.7) so that I can run python from ArcGIS 10.2.1 (32 bit), and have access to the pywin modules. But I am getting the error "No module named win32com.client." I installed from here.
🌐
Mhammond
mhammond.github.io › pywin32 › html › com › win32com › HTML › PythonCOM.html
Python COM Implementation documentation
Whenever QueryInterface is called, Python will lookup this map, to determine if the object type is supported. If the object is supported, then an object of that type will be returned. If the object is not supported, then a PyIUnknown object will be returned. Note that PyIDispatch will be supported by the core engine. Therefore: >>> disp=someobj.QueryInterface(win32com.IID_Dispatch)
🌐
Esri Community
community.esri.com › t5 › python-questions › win32-com-client › td-p › 73379
Solved: Win32.com client - Esri Community
May 31, 2017 - Can some one be kind engought to guide me though install win32com.client pkg please. Solved! Go to Solution. ... Thanks!... corrected now ... Dan, is there any reason to do this using pip instead of the windows installer at sourceforge, which adds an entry to add remove programs and all that Windows jazz? I've always pointed people to the sourceforge download. ... I clean out stuff manually before and after or through windows doing installs. Also, I still use pythonwin for an IDE on occasions and installing it took care of all the dependencies and cleanup.
🌐
Python Programming
pythonprogramming.altervista.org › how-to-install-the-win32com-module-to-make-the-computer-speak
How to install the win32com module (to make the computer speak) – python programming
July 15, 2018 - http://pythonprogramming.altervista.org/wp-content/uploads/2018/07/install_win32.mp4 · # computer windows speaks from win32com.client import Dispatch speak = Dispatch("SAPI.SpVoice") speak.Speak("Ciao")
🌐
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?

🌐
The Coding Forums
thecodingforums.com › archive › archive › python
Using Python with COM to communicate with proprietary Windows software | Python | Coding Forums
September 21, 2005 - Unfortunately, it seems as if win32com, even if I makepy the log tool executable (which gives me the full range of available functions of the interface, just as expected), cannot be used, since the interface is not a simple IDispatch interface. Also, I discovered that the Python client must also implement a COM server to receive the log information as it is generated by the embedded device, passed into the log tool and then sent by the log tool COM server.
🌐
Cesarkallas
cesarkallas.net › arquivos › apostilas › python › doc › Python Programming on Win32_ Chapter 12 Advanced Python and COM.pdf pdf
Python Programming on Win32: Chapter 12 Advanced Python and COM
Start PythonWin, and from the Tools menu, select the item COM Makepy utility. Using Windows Explorer, locate the client subdirectory under the main win32com