想把毕设用pyqt5做的界面打包 结果报了如下错误:
`853 INFO: PyInstaller: 5.0
853 INFO: Python: 3.9.7 (conda)
910 INFO: Platform: Windows-10-10.0.22000-SP0
911 INFO: wrote C:\Users\83480\PycharmProjects\pyqt5_car\ui_yoloV5.spec
984 INFO: UPX is available.
988 INFO: Extending PYTHONPATH with paths
[‘C:\Users\83480\PycharmProjects\pyqt5_car’]
2195 INFO: checking Analysis
3748 INFO: checking PYZ
4154 INFO: checking PKG
4155 INFO: Building PKG because PKG-00.toc is non existent
4155 INFO: Building PKG (CArchive) ui_yoloV5.pkg
4168 INFO: Executing - upx–lzma-qC:\Users\83480\AppData\Local\pyinstaller\bincache01_py39_64bit\api-ms-win-crt-math-l1-1-0.dll
The subprocess:
upx–lzma-qC:\Users\83480\AppData\Local\pyinstaller\bincache01_py39_64bit\api-ms-win-crt-math-l1-1-0.dll
exited with error 1 and error output:
Copyright © 1996 - 2020
UPX 3.96w Markus Oberhumer, Laszlo Molnar & John Reiser Jan 23rd 2020
File size Ratio Format Name
-------------------- ------ ----------- -----------
upx: C:\Users\83480\AppData\Local\pyinstaller\bincache01_py39_64bit\api-ms-win-crt-math-l1-1-0.dll: NotCompressibleException
Packed 1 file: 0 ok, 1 error.
`
原因的话 我墙内墙外搜了一圈 全是说linux的 没找到什么原因 但是在github上找到了相似问题和解决方案 自己试了一下 成功了 分享出来。