ImportError: No module named 'tkinter' after pyInstaller

前端 未结 3 1253
孤城傲影
孤城傲影 2021-01-14 10:07

I want to do an executable, but ervery time I run the .exe it writes ImportError: No module named \'tkinter\', and all I read on Stackowerflow do not help me !

3条回答
  •  野的像风
    2021-01-14 10:18

    FINALLY WORKED FOR pyinstaller -F --hidden-import=tkinter --hidden-import=tkinter.filedialog prog.py Thanks a lot !!!

提交回复
热议问题