Pyinstaller QtCore Module import error

前端 未结 2 1758
走了就别回头了
走了就别回头了 2020-12-11 05:48

I am trying to build my app with --onefile option by pyinstaller. Here is the extract.

import sys
from PyQt4 import QtGui, QtCore
from modules.login import L         


        
2条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-11 06:29

    i just had a similar problem, once i ran pyinstaller --onedir main.py, i got that error.

    i copied the Qt5core.dll in the same folder as the generated .exe to the \PyQt\bin folder and everything was working well.

提交回复
热议问题