yous sef
yous sef

Reputation: 11

pyttsx error: No module named 'engine'

when i write this code:

import pyttsx
engine = pyttsx.init()
engine.say('hello world ')
engine.runAndWait()

i get this probleme

File "C:/Users/youssef123/PycharmProjects/fgq/ghqsd.py", line 1, in <module>
    import pyttsx
  File "C:\Users\youssef123\PycharmProjects\fgq\venv\lib\site-packages\pyttsx\__init__.py", line 18, in <module>
    from engine import Engine
ModuleNotFoundError: No module named 'engine'

how can i fix that please

Upvotes: 1

Views: 1357

Answers (1)

Echo
Echo

Reputation: 21

For Python3, please install the latest version via

pip3 install pyttsx3 

and in coding call

import pyttsx3

Upvotes: 1

Related Questions