python IDLE cannot connect and Jupyter notebook cannot open the browser
Problem Description
WIN10 system due to firewall mechanism, installing Python and Anaconda will cause the following error:
1. After installing Python, an error occurred while opening IDLE, unable to connect to the Python interpreter. Error message is
IDLE ' s subprocess didn ' t make connection. either IDLE can;t
Start a subprocess or personal firewall software is blocking
The connection. After installing Anaconda, Jupyter Notebook was found unable to open the browser. Notebook can not open the problem will also appear in the original could be opened but not open after a period of time, in the Win7 system will also occur this problem.
The above problem is caused by firewall blocking. Solutions
The workaround is to add Python to the firewall exception:
Control Panel-> System and security-> Windows Defender firewall-> allowed applications
Click to allow other programs to locate the installation directory and add Python.exe and Pythonw.exe to the Allow list, both private and public.