I was having some problems when using the .getproperty(\'voices\') attribute in pyttsx3. So I decided to uninstall it and then re-install it using PIP to see if that may fix the
I hope you are trying to install pyttsx3 from https://pypi.org/project/pyttsx3/.
were you able to execute pip install pyttsx3 with out any issues? Are you trying to run the above code from jupyter? if yes then, please don't run the complete code at a time i.e the below code
import pyttsx3
engine = pyttsx3.init()
engine.say("I will speak this text")
engine.runAndWait()
first run import pyttsx3
alone and thern try to put up your code one by one.
I have faced similar issue earlier many times while running it on diferent systems.
I don't know why this issue shows up but the above steps will surely do resolve the issue.