[Glitch?] Python has just stopped working

tomasz.wisniewski.gm at gmail.com tomasz.wisniewski.gm at gmail.com
Thu Feb 23 03:14:23 EST 2017


W dniu wtorek, 16 lutego 2016 21:09:50 UTC+1 użytkownik Theo Hamilton napisał:
> I woke up two days ago to find out that python literally won't work any
> more. I have looked everywhere, asked multiple Stack Overflow questions,
> and am ready to give up. Whenever I run python (3.5), I get the following
> message:
> 
> Fatal Python error: Py_initialize: unable to load the file system codec
> ImportError: No module named 'encodings'
> 
> Current thread 0x00002168 (most recent call first):
> 
> If there's anything you know that I could do to fix this, then please tell
> me. I've tried uninstalling and reparing, so it's not those. Thanks!

You have to set your PYTHONHOME variable in Windows. for example

PYTHONHOME='E:\Python36'

I had the same problem and this worked.



More information about the Python-list mailing list