What to do if Fatal Python error: Py_Initialize: can't initialize sys standard streams LookupError: unknown encoding: windows-31j occurs in PyCharm
What to do if the following error occurs in PyCharm / Python Commynity Edition Plugin
Fatal Python error: Py_Initialize: can't initialize sys standard streams
LookupError: unknown encoding: windows-31j
Process finished with exit code 3
Add the following to bin / pycharm.exe.vmoptions
(ʻidea.exe.vmoptions`) in the PyCharm (IDEA) installation directory.
-Dfile.encoding=UTF-8
This is possible.
- Supported in 143.595 released on 11/11/2015 (PyCharm 143.595 Release Notes)
- People using Plugin cannot install 5.0.143.116 ~ which has been fixed in 143.382 released on 11/12/2015 (plugin is incompatible with this installation occurs). There is a way to update the minor version with Early Access Program, but it is subtle because it may cause other problems.
Bug Tracker