且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Pyinstaller .exe 找不到 _tiffile 模块 - 加载某些压缩图像会很慢

更新时间:2023-12-05 09:31:34

我认为 muggy 是正确的,因为 __package__ 导致了这里的问题.我还没有找到修复的确切原因,但这似乎使用 pyinstaller 的最新更新解决了.检查您的版本:

I think muggy is right about he weirdness with __package__ causing the issue here. I haven't tracked down the exact reason for the fix, but this seems to be resolved using the latest update to pyinstaller. Check your version with:

→ pyinstaller --version3.2.1

和升级

→ pip3 install --upgrade pyinstaller

更新仅在 2017 年 1 月 15 日进行,因此当您最初询问时这没有帮助,但现在肯定有帮助.

The update was only made on January 15, 2017 so this wouldn't have helped when you originally asked, but it sure helps now.