What could be the reason for fatal python error:initfsencoding:unable to load the file system codec?

Solution 1:

Fixed in 4c18633. The problem is that for version x64 for Python 3.7 it is not working due to class config for freezer.py. You need to go cx_Freezer installation folder. If you have a virtual environment, go to your environment folder \lib\site-packages\cx_Freeze, find the freezer.py and add the code found on the commit.

You can find the patch at GitHub