Python Error

Mayukh Chakraborty mchakrain at yahoo.com
Mon Nov 23 15:13:01 EST 2020


 1. The command 'py' doesn't work. It gives me the error below :
C:\Users\mchak>pyFatal Python error: init_sys_streams: can't initialize sys standard streamsPython runtime state: core initializedAttributeError: module 'io' has no attribute 'open'
Current thread 0x00008290 (most recent call first):<no Python frame>

2. If I use py -0, I get two installed versions. However, if I try to uninstall from Control Panel, I see only 3.9 version
C:\Users\mchak>py -0Installed Pythons found by py Launcher for Windows -3.9-64 * -3.8-64
3. I tried to uninstall v3.9 and reinstall but it didn't solve the issue.
Regards,Mayukh
    On Monday, November 23, 2020, 06:17:00 PM GMT, Barry Scott <barry at barrys-emacs.org> wrote:  
 
 

> On 23 Nov 2020, at 14:10, Mayukh Chakraborty via Python-list <python-list at python.org> wrote:
> 
> Hi,
> I had uninstalled and installed Python in Windows 10 but I am getting the error below. Can you please help ?
> C:\Users\mchak>pythonFatal Python error: init_sys_streams: can't initialize sys standard streamsPython runtime state: core initializedAttributeError: module 'io' has no attribute 'OpenWrapper'
> Current thread 0x00009d44 (most recent call first):<no Python frame>
> Regards,Mayukh

Which version of python are you installing and where did you download it from?
Do you have more than one version of python installed?


Does the command:

  py

work?

If you have python from python.org installed you should be able to list all the version you have installed
with the command:

  py -0

That is zero not oh.

Barry




> -- 
> https://mail.python.org/mailman/listinfo/python-list
> 
  


More information about the Python-list mailing list