pyinstaller打包

参考链接:https://www.zhihu.com/question/268486272
参考链接:https://www.cnblogs.com/xdd1997/p/12043800.html
https://blog.csdn.net/qq_34949842/article/details/88991468

从安装PyQt5到打包成exe

PYQT 将图片一起打包

视频教程

1. 在cmd里安装pyintall  ; win+R,输入 cmd,

pip install pyinstaller

2.在要打包的文件的文件夹上shift+右键,点击“在此处打开powershell窗口”

pyinstaller打包_第1张图片

3.输入打包命令  

pyinstaller -F -w "TimeMainXdd.py"

4.在窗口中可看到exe的生成路径

 5.我好了,你的就不知道了哈哈

 视频教程

 


 

更新。。。

错误:Failed to execute script pyi_rth_pkgres

解决方案:(不知所以就成功了)

1.卸载ANNOUNCE

2.重装pyinstaller

pip uninstall pyinstaller
pip install https://github.com/pyinstaller/pyinstaller/archive/develop.zip

 3. 删除上次打包残余文件与文件夹

 4.重新打包

pyinstaller -F "hello world.py"      有黑窗
pyinstaller -F -w "TimeMainXdd.py"    无黑窗

 就这样成功了,不明觉厉~  参考:木十的博客

 

你可能感兴趣的:(pyinstaller打包)