No module named Win32com.client error when using the pyttsx package

纵饮孤独 提交于 2019-12-05 11:25:11

I had the same problem. I installed pywin32 from here (download the build as per your preference). I downloaded for my python version (32 bit).

After installing I was able to import win32com.client

import win32com.client

Since this is from some time ago and the links are a little outdated, a simple run of

pip install pywin32

will install the correct version for your environment. You should be able to run the import win32com.client without issue. Be sure to restart your kernel to see the changes.

I was also going through the same issue and didn't find any satisfactory solution. Then I just followed 2 steps and Voila :) 1)First of all, you have to download the pywin32-217.win32-py2.7 from (https://sourceforge.net/projects/pywin32/files/pywin32/Build%20217/).

2)Then you have to install it

pip install pypiwin32

run the code again and you will get the expected output.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!