Pyinstaller .exe cannot find _tiffile module - Loading of some compressed images will be very slow

前端 未结 4 1730
面向向阳花
面向向阳花 2020-12-20 21:12

When I run my code from Pyinstaller the tiff reader works fine. After freezing using Pyinstaller I get the following warning:

UserWarning: ImportErr         


        
4条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-20 22:10

    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 --version 3.2.1

    and upgrade with

    → pip3 install --upgrade pyinstaller

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

提交回复
热议问题