在Mac上安装Python2.7后,启动IDLE后会报错。报错信息如下:
IDLE's subprocess didn't make connection. Either IDLE can't start a subprocess or personal firewall software is blocking the connection.
修改如下,修改文件:
/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/idlelib/pyshell.py
********
def main():
global flist, root, use_subprocess
use_subprocess = True
enable_shell = True
enable_edit = False
debug = False
********
将use_subprocess = True
修改为:
use_subprocess = False
代码在第1379行,可以用vi :set number
显示行号
“The first 90% of the code accounts for the first 90% of the development time. The remaining 10% of the code accounts for the other 90% of the development time.” – Tom Cargill
标 题:mac上IDLE打不开,提示IDLE's subprocess didn't make connection. Either IDLE can't start a subprocess or personal firewall