Py2Exe “Missing Modules”

前端 未结 2 2022
梦谈多话
梦谈多话 2020-12-11 02:17

I\'m trying to convert my python project into an exe using Py2Exe. It is worth noting that cx_freeze complains about the same three \"missing modules\", along with several d

2条回答
  •  情话喂你
    2020-12-11 02:47

    win32api and win32con are part of Mark Hammond's Python Windows extensions (aka pywin32). readline is a module that is used (if present) by some code interacting with the console.

    Both readline and pywin32 are optional modules/packages that are not abolutely required but will be used when present.

    All in all - py2exe notices that these modules/packages are referenced by some code which will be included into your exe (it even mentions the modules that reference these mod/packages: cmd, code, pdb, platform). I hope you have tested your script - in the 'non-compiled' form, if it works correctly than you can safely ignore these messages: they are only warnings.

    The reason that no executable is built is that the line 'console=["redstring"]' or 'windows=["redstring"]' is missing in the setup() call.

提交回复
热议问题