没有空闲子进程连接 [英] No IDLE Subprocess connection

查看:97
本文介绍了没有空闲子进程连接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是python编程的新手,并且想尝试在IDLE(而不是OSX命令行)中编辑脚本.但是,当我尝试启动它时,出现错误空闲子进程未建立连接.空闲无法启动子进程或个人防火墙软件阻止了连接."我没有配置防火墙,那可能是什么问题?

解决方案

您没有说使用的是哪个版本的Python或OS X,但是,如果您要使用由最新的python.org安装的IDLE,则不然64 Python 2.7的位安装程序,几乎可以肯定会遇到已知问题.如错误报告中所述,在2.7安装程序问题解决之前,2.7的最简单解决方法是使用.

更新:适用于Python 2.7的python.org 64位/32位安装程序存在此问题.后续版本的python 2.7已对其进行了更正.在撰写本文时,Python 2.7.2是最新的.但是,原始问题的根本原因仍然是Apple在Mac OS X 10.6中提供的Tcl/Tk 8.5版本.要将IDLE或Tkinter与OS X的当前64位Python安装程序一起使用,您需要从ActiveState安装更稳定的Tcl/Tk 8.5.在此处进行维护,该更新也与当前安装程序的下载页面链接./p>

I'm new to python programming, and want to try to edit scripts in IDLE instead of the OSX command line. However, when I try to start it, it gives me the error "Idle Subprocess didn't make a connection. Either Idle can't start a subprocess or personal firewall software is blocking the connection." I don't have a firewall configured, so what could the problem be?

解决方案

You don't say which version of Python or OS X you are using but, if you are trying to use the IDLE installed by the recent python.org 64-bit installer for Python 2.7, you are almost certainly running into a known issue. As noted in the bug report, until the problem with the 2.7 installer is resolved, the simplest workaround for 2.7 is to install the 32-bit-only version of 2.7 using the '10.3 and up' installer.

UPDATE: This problem existed with the python.org 64-bit/32-bit installer for Python 2.7. It has been corrected with subsequent releases of Python 2.7; as of this writing, Python 2.7.2 is current. However, the root cause of the original problem remains the version of Tcl/Tk 8.5 supplied by Apple with Mac OS X 10.6. To use IDLE or Tkinter with the current 64-bit Python installers for OS X, you need to install the more stable Tcl/Tk 8.5 from ActiveState. Updated details are maintained here which is also linked from the current installer download pages.

这篇关于没有空闲子进程连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆