I've just download Pycharm community Edition 2017.1.5 and when I debug my code it give me this Error in console
Fatal Python error: Py_Initialize: can't initialize sys standard streams 
Traceback (most recent call last):
File "C:\Python36\lib\io.py", line 52, in <module>
File "C:\Users\w\temp\abc.py", line 5, in <module>
RuntimeError: lost sys.stdout
io.py
import abc
abc.py
# -*- coding: utf-8 -*-
s1 = 72
s2 = 85
r = (s2 - s1)/s1 *100
print ('%.1f %%' % r)
Why would this happen, and how can I fix it?
i could reproduce the issue by naming any file abc.py and execute from PyCharm, it looks like there is a conflict with this file name.
ABC is a standard module used by Python, and imported in many others modules like io, used in the standard inputs and outputs. When executing your script, it seems to import your code instead of the standard module.
It should works if you rename your own module abc.py in something else, i.e 
abcd.py
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