PyInstaller “ValueError: too many values to unpack”

前端 未结 1 2022
轻奢々
轻奢々 2021-02-20 12:40

Pyinstaller version 3.2

OS: win10


My python script work well in Winpython Python Interpreters.

But when I using Pyinstaller packages a python scrip

1条回答
  •  余生分开走
    2021-02-20 13:23

    The datas array expects tuples, not strings. From the pyinstaller docs:

    The list of data files is a list of tuples. Each tuple has two values, both of which must be strings:

    • The first string specifies the file or files as they are in this system now.
    • The second specifies the name of the folder to contain the files at run-time.

    I imagine applying the above information to your code would result in this:

    ...    
    datas=[("skimage.io._plugins", '.')],
    ...
    

    I hope that helps!

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