When running any Python script (by double clicking a .py file on Windows 7) I'm getting a Python: failed to set __main__.__loader__
error message. What to do?
More details:
Here's an example for the content of a file named "hey.py" that I failed to run on my machine:
print('hey')
I had the same problem. Turns out it was because the file was stored in a directory with a name not in English (Hebrew in my case). Make sure the path to the file contains only English letters.
http://bugs.python.org/issue16218
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With