How to package a python program with pyqt4 module by cxfreeze -
i wrote program using pyqt4.qtgui , qtcore,i packaged exe,and works on computer,but can't run on others' computer
the error this:
cx_freeze: python error in main script --------------------------- traceback (most recent call last): file "c:\python33\lib\site-packages\cx_freeze\initscripts\console3.py", line 27, in <module> file "baidu.py", line 6, in <module> file "c:\python\32-bit\3.3\lib\importlib\_bootstrap.py", line 1607, in _handle_fromlist file "c:\python\32-bit\3.3\lib\importlib\_bootstrap.py", line 313, in _call_with_frames_removed file "c:\python\32-bit\3.3\lib\importlib\_bootstrap.py", line 1558, in _find_and_load file "c:\python\32-bit\3.3\lib\importlib\_bootstrap.py", line 1525, in _find_and_load_unlocked file "extensionloader_pyqt4_qtgui.py", line 11, in <module> importerror: dll load failed: 找不到指定的模块。 the packaged files are:
├─_bz2.pyd ├─_hashlib.pyd ├─_socket.pyd ├─_ssl.pyd ├─baidu.exe ├─icudt49.dll ├─icuin49.dll ├─icuuc49.dll ├─libeay32.dll ├─libglesv2.dll ├─lxml.etree.pyd ├─pyqt4.qtcore.pyd ├─pyqt4.qtgui.pyd ├─pyqt4.qtnetwork.pyd ├─python33.dll ├─qt5core.dll ├─qt5gui.dll ├─qt5network.dll ├─qt5printsupport.dll ├─qt5widgets.dll ├─sip.pyd ├─ssleay32.dll └─unicodedata.pyd i used "cxfreeze baidu.py --base-name=win32gui --target-dir d:\123" package it. wonder if missed arguments when using cxfreeze result in problem,and how package exe.thank you
d3dcompiler_43.dll needed run pyqt
Comments
Post a Comment