App created with PyInstaller has a slow startup

前端 未结 6 2221
伪装坚强ぢ
伪装坚强ぢ 2020-12-04 15:32

I have an application written in Python and \'compiled\' with PyInstaller. It also uses PyQt for the GUI framework.

Running this application has a delay of about 10

6条回答
  •  失恋的感觉
    2020-12-04 16:04

    I suspect that you're using pyinstaller's "one file" mode -- this mode means that it has to unpack all of the libraries to a temporary directory before the app can start. In the case of Qt, these libraries are quite large and take a few seconds to decompress. Try using the "one directory" mode and see if that helps?

提交回复
热议问题