Use pyunpack inside an executable file made with pyinstaller in combination with try except

前端 未结 2 1695
孤独总比滥情好
孤独总比滥情好 2021-01-18 17:34

I have a strange behaviour for pyunpack, a package for unpacking, inside an executable.

I want to do the following thing:

I have a .7z type of file whose end

2条回答
  •  独厮守ぢ
    2021-01-18 18:07

    The problem is, as you found in your 2nd edit, that pyunpack needs patool installed on the target system - which, in turn, requires python.

    To fix this you need to:

    • Use tarballs or zipfiles; shutil supports theses.

    • Or require the end user to have python installed.

    Another way of putting it is that to use pyunpack with pyinstaller, you need python on the target system.

提交回复
热议问题