cx-freeze fails to include modules even when included specifically

后端 未结 2 1913
名媛妹妹
名媛妹妹 2020-12-19 10:24

I am trying to use cx-freeze to create a static self-contained distribution of my app (The Spye Python Engine, www.spye.dk), however, when I run cx-freeze, it says:

2条回答
  •  心在旅途
    2020-12-19 10:43

    I guess, you can not simply += on lists.

    You should probably use the list method extend - otherwise the original list will not be modified:

    includes.extend(["BaseHTTPServer", ""])
    

    EDIT: (Thank @ThomasK)

    += works fine - I only had an online Python interpreter that did not work correctly. (I have no python install on my Windows installation so I had to check online).

提交回复
热议问题