[英]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 上运行。
I already tried everyting that i can think of here is options that i used:我已经尝试过我能想到的一切,这里是我使用的选项:
-w : does't have.exe file -w : 没有.exe文件
-- onefile -w and -F -w : The specified module could not be found. -- onefile -w和-F -w :找不到指定的模块。
--F , --onefile and no option used : Only shows this option for like half a second --F , --onefile 且未使用任何选项:仅显示此选项半秒
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.