Error with PyQtDeploy



我正在使用PyQt 5.3.1,我正在部署pyqtdeploy 0.4,当我想建立一个项目时,我获得了这个错误信息:

Generating code...
Cleaning E:ProgramasPython3PythonQTQTCalculatorbuild.
Freezing C:UsersTobalAppDataLocalTempbootstrap_py3.py
Freezing E:ProgramasPython3PythonQTQTCalculatorqtcalculator.py
Freezing E:/ProgramasPython3/PythonQTQTCalculator__init__.py
Freezing E:/ProgramasPython3/PythonQTQTCalculatorcalculator_ui.py
Freezing E:/ProgramasPython3/PythonQTQTCalculatorimg_rc.py
Freezing E:/ProgramasPython3/PythonQTQTCalculatorqtcalculator.py
Freezing C:Python34libssite-packagesPyQt5__init__.py
Unable to freeze C:Python34libssite-packagesPyQt5__init__.py.
Traceback (most recent call last):
  File "C:UsersTobalAppDataLocalTempfreeze.py", line 103, in <module>
    freeze_as_data(py_file, options.as_data)
  File "C:UsersTobalAppDataLocalTempfreeze.py", line 36, in freeze_as_data
    code = _get_marshalled_code(py_filename)
  File "C:UsersTobalAppDataLocalTempfreeze.py", line 71, in _get_marshalled_code
    source_file = open(py_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'C:\Python34\libs\site-packages\PyQt5\__init__.py'

我认为这是一个bug。有人知道怎么修吗?由于

您是否静态构建PyQt5 ?主机和目标Python是两个不同的东西,通常在不同的目录中。目标Python具有静态构建的PyQt模块,主机Python也必须安装PyQt5(因为pyqtdeploy使用Qt作为其GUI),但它通常是主机Python中的动态库。

在pyqtdeploy GUI的"Locations"选项卡中,确保"Standard library directory"是正确的。

相关内容

  • 没有找到相关文章

最新更新