python - 如何使用py2exe在中文版XP上编译应用程序,同时使其在英文版XP中运行?

标签 python windows py2exe

我在Windows XP(中文版)中使用py2exe编译了我的Python程序,但它无法在Windows XP(英文版)上运行。当我在 Windows XP 英文版中运行它时,窗口显示:

This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix the problem.

如何让应用程序在英文版XP上运行,同时在中文版XP上编译?

最佳答案

我认为您的问题不在于您创建 .exe 的语言。 查看此线程 Application has failed to start ... application configuration is incorrect - VC++ 2005 Runtime Problem 。 您必须包含 VC++ 运行时的 dll,如下所示:

Microsoft.VC90.CRT.manifest
msvcm90.dll
msvcp90.dll
msvcr71.dll
msvcr90.dll

将其放入您的 dist 文件夹中。并在 Windows XP 中以英语测试执行您的应用程序。

关于python - 如何使用py2exe在中文版XP上编译应用程序,同时使其在英文版XP中运行?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16184199/

相关文章:

python - 无法使py2exe工作

python - 为什么不过滤(不是无,可迭代)?

python - 如何从 Python 中具有不同长度的列表列表创建数据框?

python - 如何在 VS 代码中获得 VS 的 python 语法高亮显示?

windows - 如何在 Windows 上配置用户特定的主机文件

c - 如何正确使用 ExAllocatePoolWithTag 使其不返回 STATUS_INSUFFICIENT_RESOURCES?

c - 对话框无法第二次打开。 GTK+、Glade 和 C

python - 如果为 True,则 Pandas 保留列值,否则为 False

python - shutil.copyfile 的替代品

Python 3项目到exe?