PyInstaller “You may load I/O plugins with the `skimage.io.use_plugin`”

后端 未结 1 1435
旧巷少年郎
旧巷少年郎 2021-01-06 17:25

useing Pyinstaller packages a python script

Pyinstaller version 3.2

OS:Ubuntu

Traceback (most recent call last):
  File \"\",         


        
相关标签:
1条回答
  • 2021-01-06 17:54

    The problem seems to be related to this github issue, essentially the skimage.io._plugins submodule is making life hard for Pyinstaller.

    To make sure everything you need is packaged you should have a hook file that contains

    from PyInstaller.utils.hooks import collect_data_files, collect_submodules
    
    datas = collect_data_files("skimage.io._plugins")
    hiddenimports = collect_submodules('skimage.io._plugins')
    

    (or if you already have a hook file with these, extend the current datas and hiddenimports).

    0 讨论(0)
提交回复
热议问题