Py2exe with Tkinter

后端 未结 4 1364
一生所求
一生所求 2021-01-14 03:05

I\'m trying to convert a basic tkinter GUI program to an .exe using py2exe. However I\'ve run into an error using the following conversion script.

# C:\\Pyth         


        
4条回答
  •  自闭症患者
    2021-01-14 03:48

    For your original problem I can't say what exactly the problem is, but usually it helps with trial-and-error to guess missing files and directories. If you know what you're missing, add them to your packages (for python modules) or data_files (for other files).

    The second problem is the result of some c-modules (and python itself) being build with MS Visual Studio, thus having a dependency to the MS Visual C++ 9.0 (2008) runtime. You can solve this by either:

    • owning a copy of Visual Studio (Express Edition doesn't count), so that you are permitted to redistribute the MSVCR dependencies (under the condition that you forbid your users reengeneering etc. of the dependend parts)

    • pointing your users to the download of the MS Visual C++ 2008 Redistributable package at Microsoft.

提交回复
热议问题