You are on page 1of 1

first type or copy the code :-

"auto-py-to-exe" in the command prompt

then do the necessary requirements

after that add command by clicking the settings dropdown menu where Manually
Provide Options

the command is ----------


--hidden-import=pyttsx3.drivers --hidden-import=pyttsx3.drivers.dummy --hidden-
import=pyttsx3.drivers.espeak --hidden-import=pyttsx3.drivers.nsss --hidden-
import=pyttsx3.drivers.sapi5

or just simply write in the command prompt the line :-

pyinstaller --noconfirm --onefile --console --add-data


"C:/Users/98745/Desktop/test/JARVIS_SCREEN_LAUNCHER.exe;." --hidden-
import=pyttsx3.drivers --hidden-import=pyttsx3.drivers.dummy --hidden-
import=pyttsx3.drivers.espeak --hidden-import=pyttsx3.drivers.nsss --hidden-
import=pyttsx3.drivers.sapi5 "C:/Users/98745/Desktop/test/main.txt"

to add an icon to the executable file(.exe) also add this command in the present
command (The directory of the icopn shoould contain icon file(.ico):-

-i "C:\\Users\\98745\\Downloads\\Strike_The_Blood_Season_4-1.ico"

You might also like