如何将pyqt5编写的打包成exe文件
win10环境,python版本为3.6,IDE为eric6,用pyqt5编写了GUI程序,安装了cx_freeze,在命令行输入的命令为:cxfreeze D:\python程序\hello.py --target-dir D:\python程序\ --base-name=win32gui
执行后报错如下:
Usage: cxfreeze
Freeze a Python script and all of its referenced modules to a base
executable which can then be distributed without requiring a Python
installation.
cxfreeze: error: only one script can be specified
请教一下,错误在哪个地方。多谢各位。 http://www.cnblogs.com/gopythoner/p/6337543.html
Pyinstaller了解一下 感谢,刚用了pyinstaller试了下,转换成功:
378583 INFO: Building EXE from out00-EXE.toc completed successfully.
并且也生成了exe文件,好大,243.9MB,但是双击打开显示一个命令行窗口,过了一会儿弹出:
This application failed to start because it could not find our load Qt platform plugin"windows" in"".
Reinstalling the application may fix this problem
请教是出现了什么问题呢?
页:
[1]