cx-freeze doesn't find all dependencies

前端 未结 2 534
-上瘾入骨i
-上瘾入骨i 2020-12-09 06:12

I have a python script (2.7) with some \"interesting\" imports at the top. I initially wanted to use py2exe to compile this into an exe that I can more easily distribute (py

2条回答
  •  無奈伤痛
    2020-12-09 06:46

    In case anyone ever runs across this, the problem seemed to be that cxfreeze does not play nicely with eggs. Once I extracted the code out of the egg (renamed it to a zip and unzipped), and, created for example: Python27\Lib\site-packages\socketpool for the code, then ran the build, things seemed to work fine.

    Seems like a hack. Time for a shower.

提交回复
热议问题