美文网首页
Python无法运行IDLE,提示出错

Python无法运行IDLE,提示出错

作者: 代码小工蚁 | 来源:发表于2017-08-22 22:45 被阅读31次

错误现象:Python无法运行IDLE,出现如下提示:
IDLE's subprocess didn't make connection ...提示出错


出错提示.png

处理方法:
使用文本编辑软件,如记事本notepad.exe 或 Notepad++
修改Python安装目录下的\Lib\idlelib\PyShell.py文件,在1377行附近,将

def main():函数下面
use_subprocess = True
修改为:
use_subprocess = False

(* 以上处理方法取自网络搜索结果,非笔者原创)

修改False.JPG

保存后,重新运行IDLE,即可正常启动。

我的环境:Win7 64位环境,Python 3.6.1版本
操作通过。

代码小工蚁 整理备忘 build 2017-08-22

相关文章

网友评论

      本文标题:Python无法运行IDLE,提示出错

      本文链接:https://www.haomeiwen.com/subject/llsrdxtx.html