Fatal Python error: initfsencoding: unable to load the file system codec
问题 I have created a .exe file of a simple script with intentions to run it on a server however I cannot seem to figure out what this fault means or find any answers online. The fault code is as follows: Fatal Python error: initfsencoding: unable to load the file system codec ModuleNotFoundError: No module named 'encodings' Current thread 0x00003c8c (most recent call first): To get this far I used pyinstaller pyinstaller --onefile MyScript.py When this didn't work I also tried pyinstaller