ValueError: Received icon image 'D:\shutDonw\com.ico' which exists but is not in the correct format. On this platform, only ('exe', 'ico') images may be used as icons. If Pillow is installed, automatic conversion will be attempted. Please install Pillow or convert your 'ico' file to one of ('exe', 'ico') and try again
bc.png
问题提示很明显,打包图片格式不对(打包图标格式必须是*.ico格式),让你安装一个库,打包的时候可以自动转换
解决:pip3 install Pillow
安装后再次进行打包即可:pyinstaller -F -w D:\shutDonw\sdt.py -i D:\shutDonw\com.png
db.png
网友评论