使用pyinstaller打包后运行时报错OSError: cannot identify image file

先展示我遇到的问题(图1),尝试了很多方法,最后通过修改pillow模块的版本才成功。先卸载pillow:pip3 uninstall pillow
重新安装:pip3 install pillow==4.1.1
(之前我还遇到打包后torch报错的情况,我后来调用的虚拟环境venv,torch也更换成0.4.0版本了)
在这里插入图片描述
原文地址https://blog.csdn.net/qq_35629706/article/details/90944813

发布了84 篇原创文章 · 获赞 29 · 访问量 4万+

猜你喜欢

转载自blog.csdn.net/qq_39852676/article/details/101707598