简体   繁体   English

来自 PyInstaller 的 python 文件的 making.exe 问题

[英]Problem with making .exe from python file by PyInstaller

My script.py work perfectly, but.exe sadly doesn't work.我的 script.py 工作完美,但是 .exe 很遗憾不工作。 Im running on newest PyInstaller.我在最新的 PyInstaller 上运行。

Here is my script 这是我的脚本

I already tried everyting that i can think of here is options that i used:我已经尝试过我能想到的一切,这里是我使用的选项:

Options used使用的选项

Not all python code can be compiled into a.exe.并不是所有的python代码都可以编译成a.exe。

I was able to work around this issue by importing pywintypes into my script before win32print module.我能够通过在 win32print 模块之前将 pywintypes 导入我的脚本来解决这个问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM