Python 3.6.x PyInstaller gives error “No module named 'PyQt5.sip'”

后端 未结 1 976
暖寄归人
暖寄归人 2021-02-07 20:36

I developed a few programs that runs well on Python 3.5.4, but because of some errors about win32 made me go to Python 3.6.4, but when I build my project with pyinstaller, I get

1条回答
  •  梦谈多话
    2021-02-07 21:06

    I had the same issue which is apparently a known bug due to sip now being installed separately.

    https://github.com/pyinstaller/pyinstaller/issues/3630

    Upon creating the installer I added the line:

    --hidden-import PyQt5.sip

    This worked no problem.

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