Python 2.7.5 启动IDLE时出现“socket error”

一段时间没使用Python2.7.5的自带IDLE,最近一打开接连两个报错提示框:

提示框一:“Subprocess Startup Error"

”IDLE's  subprocess didn't make  connection  Either  IDLE can't  start  a  subprocess  or  personal  firewall software is  blocking  the  connection“

提示框二:“IDLE Subprocess Error”

“Socket Error:”

在网上搜到了解决方案:

在Python的安装目录下,我这里是D:\Python27\Lib\idlelib\PyShell.py,找到这个PyShell.py,查找到use_subprocess = True,将True改成False。保存。

Python 2.7.5 启动IDLE时出现“socket error”_第1张图片
解决Python2.7启动IDLE报错

你可能感兴趣的:(Python 2.7.5 启动IDLE时出现“socket error”)