如何(添加/导入/引用)所需的模块用于从脚本生成可执行文件

时间:2016-12-09 09:28:13

标签: python python-3.x pyqt4 py2exe

Win 10,Python 3.4,PyQT 4.11,py2exe 0.9.2.2

我正在尝试从我的脚本制作可执行文件,但收到以下内容:

  D:\Repos\GateManagement>py -3.4 -m py2exe.build_exe main.pyw

  5 missing Modules
  ------------------
  ? Queue imported from mysql.connector.pooling
  ? System imported from serial.serialcli
  ? _mysql_connector imported from mysql.connector, mysql.connector.connection_cext, mysql.connector.cursor_cext
  ? readline imported from cmd, code, pdb
  ? xmlrpclib imported from mysql.connector.fabric.connection
  Building 'dist\main.exe'.

如何添加(引用或其他)这5个缺失的模块?

1 个答案:

答案 0 :(得分:0)

I solved it. It turns out I can't use .pyw but .py