Skip to main content

Posts

Showing posts from August, 2024

Python ModuleNotFoundError: No module named 'pyttsx3'

Description: I had already installed Python 3 and after that I have installed Anaconda 3. When installing pyttsx3 using pip install pyttsx3 on CMD I got success message. But when I run IDLE (Python 3) import command it returned error (ModuleNotFoundError: No module named 'pyttsx3'). On investigating I have found out while installing Anaconda I checked 'set python default path' and when using pip on CMD It was installing module on other python instance. Solution: Open Python 3 from the start menu from the installation path (C:\Users\ UserName \AppData\Local\Programs\Python\ Python310 \python.exe). use below commands to install the module. import pip pip.main(['install', 'pyttsx3']) pip.main(['install', 'pypiwin32'])  (Most of the time you need to install pypiwin32 for avoiding the errors likes: No module named win32com.client, No module named win32, or No module named win32api)    That's It, hopefully this post helped and you got the s...