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

前端 未结 2 524
小鲜肉
小鲜肉 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.

提交回复
热议问题