Linux is a registered trademark of Linus Torvalds. The best answers are voted up and rise to the top

Now I mentioned that this was my work machine. Detailed answers to any questions you might have

The best answers are voted up and rise to the top

The Overflow Blog Unfortunately the solutions don't work for me: I haven't set pythonpath; My python script specifies the exact version with #!/usr/bin/python3.5

@StephenRauch hi! By using our site, you acknowledge that you have read and understand our Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.

The system default is 2.7. UNIX is a registered trademark of The Open Group.
Learn more about Stack Overflow the company I checked the Mind that this is a late response, since someone has offered a bounty on this question.

Learn more about hiring developers or posting ads with us Discuss the workings and policies of this site I've had Python on it before--even before the Visual Studio 2017 installation. But I have no idea of how to fix it.

Learn more about Stack Overflow the company Start here for a quick overview of the site site design / logo © 2020 Stack Exchange Inc; user contributions licensed under Anybody can ask a question Featured on Meta The encodings directory under python2.7 was empty, but the one under pypy has the scripts.

However, when i am trying to run the exe( from dist folder), i am getting below error: Fatal Python error: initfsencoding: unable to load the file system codec zipimport.ZipImportError: can't find module 'encodings' Below is my current Python Version: Python 3.6.6 (v3.6.6:4cf1f54eb7, Jun 27 2018, 03:37:03) [MSC v.1900 64 bit (AMD64)] on win32 Fatal Python error: Py_Initialize: Unable to get the locale encoding zipimport.ZipImportError: can't find module 'encodings' Current thread 0x00007f0772b90700 (most recent call first): Aborted (core dumped) Does anyone know how to solve this problem? Start here for a quick overview of the site Active 3 years, 1 month ago. Stack Exchange network consists of 177 Q&A communities including Fatal Python error: Py_Initialize: unable to load the file system codec ModuleNotFoundError: No module named 'encodings' So Python made it on there somehow, but wasn't complete, or was blowing up. site design / logo © 2020 Stack Exchange Inc; user contributions licensed under Raspberry Pi Stack Exchange works best with JavaScript enabled Yes, because the log output shows Python 3.4 which is consistent with the pyton version in the venv. Stack Exchange network consists of 177 Q&A communities including

Fatal Python error: initfsencoding: unable to load the file system codec ModuleNotFoundError: No module named 'encodings' Current th… I’m facing this problem for about 4 months I’ve searched everywhere but no solution.

By clicking “Post Your Answer”, you agree to our To subscribe to this RSS feed, copy and paste this URL into your RSS reader.

Also note that without reproducing this problem I can't verify if any solution works. By clicking “Post Your Answer”, you agree to our To subscribe to this RSS feed, copy and paste this URL into your RSS reader.