在pycharm里面可以运行,但是打包完就运行不了,请大神帮忙解决,感谢
我的系统是win10,python 3.6.6
D:\01.python\RoutingAggregationTool>pip list
Package Version
----------- ---------
altgraph 0.16.1
future 0.16.0
IPy 0.83
macholib 1.10
pefile 2017.11.5
pip 18.0
PyInstaller 3.3.1
pypiwin32 223
PyQt5 5.11.2
PyQt5-sip 4.19.12
pyqt5-tools 5.9.0.1.2
pywin32 223
QScintilla 2.10.7
setuptools 39.0.1
sip 4.19.8
xlrd 1.1.0
D:\01.python\RoutingAggregationTool>D:\01.python\RoutingAggregationTool\dist\RoutingAggregationTool\RoutingAggregationTool.exe
Traceback (most recent call last):
File "RoutingAggregationTool.py", line 4, in <module>
from mainView import Ui_MainWindow
File "d:\python36\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 631, in exec_module
exec(bytecode, module.__dict__)
File "mainView.py", line 9, in <module>
from PyQt5 import QtCore, QtGui, QtWidgets
File "d:\python36\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 714, in load_module
module = loader.load_module(fullname)
ModuleNotFoundError: No module named 'PyQt5.sip'
[8876] Failed to execute script RoutingAggregationTool
D:\01.python\RoutingAggregationTool>
我的系统是win10,python 3.6.6
D:\01.python\RoutingAggregationTool>pip list
Package Version
----------- ---------
altgraph 0.16.1
future 0.16.0
IPy 0.83
macholib 1.10
pefile 2017.11.5
pip 18.0
PyInstaller 3.3.1
pypiwin32 223
PyQt5 5.11.2
PyQt5-sip 4.19.12
pyqt5-tools 5.9.0.1.2
pywin32 223
QScintilla 2.10.7
setuptools 39.0.1
sip 4.19.8
xlrd 1.1.0
D:\01.python\RoutingAggregationTool>D:\01.python\RoutingAggregationTool\dist\RoutingAggregationTool\RoutingAggregationTool.exe
Traceback (most recent call last):
File "RoutingAggregationTool.py", line 4, in <module>
from mainView import Ui_MainWindow
File "d:\python36\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 631, in exec_module
exec(bytecode, module.__dict__)
File "mainView.py", line 9, in <module>
from PyQt5 import QtCore, QtGui, QtWidgets
File "d:\python36\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 714, in load_module
module = loader.load_module(fullname)
ModuleNotFoundError: No module named 'PyQt5.sip'
[8876] Failed to execute script RoutingAggregationTool
D:\01.python\RoutingAggregationTool>
