on trying to install "pip install pywin32" it results to
Requirement already satisfied: pywin32 in c:\users\pankaj\appdata\local\programs\python\python38-
32\lib\site-packages (227)
on executing the program it shows
from win32.com.client import Dispatch
ModuleNotFoundError: No module named 'win32.com'
Code I am executing is
from win32.com.client import Dispatch
shout = Dispatch("SAPI.SpVoice")
speak.speak("Hey ,, How are you")
There is no module called win32.com
. Change from win32.com.client import Dispatch
to from win32com.client import Dispatch
.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.