No module named when using PyInstaller

后端 未结 7 1970
说谎
说谎 2020-11-27 15:11

I try to compile a Python project under Windows 7 using PyInstaller. The project works fine, there are no issues, however when I try to compile it the result doesn\'t work.

7条回答
  •  悲哀的现实
    2020-11-27 16:02

    The problem were some runtime dependencies of matplotlib. So the compiling was fine while running the program threw some errors. Because the terminal closed itself immediately I didn't realize that. After redirecting stdout and stderr to a file I could see that I missed the libraries Tkinter and FileDialog. Adding two imports at the top of the main solved this problem.

提交回复
热议问题