pycharm RuntimeError: lost sys.stdout ,how to fix this?

Viewed 6721

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?

1 Answers
Related