问题:
程序写好后,按下F5,但是提示错误:
IDLE's subprocess didn't make connection.Either IDLE can;t
start a subprocess or personal firewall software is blocking
the connection
That usually means that your firewall is blocking IDLE, so
enable it in your firewall. If that doesnt work, do this to fix
it (with some disavantages):
解决:
step1. 打开Python安装目录下的这个文件
C:\Python27\Lib\idlelib\PyShell.py
step2. ctrl F 搜索'use_subprocess = ',应该在main下面第一行
step3.
change
use_subprocess = True
to
use_subprocess = False
step4. 删除PyShell.pyc,使之从新编译后再次生成。
本文解决使用IDLE遇到的启动错误问题,并提供详细的步骤指导如何配置Python环境,包括修改PyShell.py文件、调整use_subprocess参数以及清理临时文件以确保IDLE顺利运行。
6490

被折叠的 条评论
为什么被折叠?



