cx_Freeze: “No module named 'codecs'” Windows 10

前端 未结 2 520
小鲜肉
小鲜肉 2020-12-07 01:05

I am currently making a game using pygame module. I have followed the following links\' directions. https://pythonprogramming.net/converting-pygame-executable-cx_freeze/

相关标签:
2条回答
  • 2020-12-07 01:15

    A simple approach but not elegant can be to place

    if not True:
        import codecs
    

    somewhere in your code.

    0 讨论(0)
  • 2020-12-07 01:16

    This was a bug in cx_Freeze which has now been corrected: https://github.com/anthony-tuininga/cx_Freeze/commit/9c98492911d4c75587d3687206d11812b48bf144

    0 讨论(0)
提交回复
热议问题