Python 3.6 pyinstaller没有Qt绑定

时间:2018-07-06 11:00:16

标签: python pyqt pyinstaller

在命令窗口中运行exe时出现此错误

Traceback (most recent call last):
  File "qtpy\__init__.py", line 169, in <module>
ModuleNotFoundError: No module named 'PySide'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "main.py", line 3, in <module>
  File "<frozen importlib._bootstrap>", line 971, in _find_and_load
  File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
  File "C:\Users\mamik\AppData\Roaming\Python\Python36\site-packages\PyInstaller\loader\pyimod03_importers.py", line 631, in exec_module
    exec(bytecode, module.__dict__)
  File "qtpy\__init__.py", line 175, in <module>
qtpy.PythonQtError: No Qt bindings could be found
[7880] Failed to execute script main

我尝试更新重新安装pyinstaller和pyqt 还安装了pyside

0 个答案:

没有答案