Answer the question
In order to leave comments, you need to log in
How to fix errors after compiling a script through pyinstaller?
Before compilation, everything works fine, but after compiling and then running the finished .exe, the console instantly closes with the following error:
ModuleNotFoundError: No module named 'pyttsx3.drivers'
[47860] Failed to execute script test
The essence of the error is clear, but here's how to fix it ??
Here is the script itself:
import pyttsx3
en = pyttsx3.init()
en.say("Check Compilation")
en.runAndWait()
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question