无法通过资源管理器中的 IDLE 运行 Python [2013] - IDLE 的子进程没有建立连接 [英] Can't run Python via IDLE from Explorer [2013] - IDLE's subprocess didn't make connection

查看:241
本文介绍了无法通过资源管理器中的 IDLE 运行 Python [2013] - IDLE 的子进程没有建立连接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

已于 2013 年 4 月 15 日解决.在 Windows 7(64 位)Windows 资源管理器中,当我右键单击 Python 文件并选择使用 IDLE 编辑"时,编辑器正确打开,但是当我运行(或 f5)Python 3.3.1 程序时,它失败并显示 IDLE 的子进程未建立连接.IDLE 无法启动子进程或个人防火墙软件阻止连接." 错误消息.启动 IDLE 以运行我的 python 3.3.1 程序的所有其他方法都运行良好.即使发送到"方法也有效,但它笨拙得令人无法接受.我已经花了四天(到目前为止)研究这个并尝试了各种事情,包括多次重新安装 Python.不,这不是防火墙阻止它.我试过完全关闭防火墙,但没有效果.

Resolved April 15, 2013. In windows 7 (64bit) windows explorer when I right clicked a Python file and selected "edit with IDLE" the editor opens properly but when I run (or f5) the Python 3.3.1 program, it fails with the "IDLE's subprocess didn't make connection. Either IDLE can't start a subprocess or personal firewall software is blocking the connection." error message. All other methods of starting IDLE for running my python 3.3.1 programs worked perfectly. Even the "Send to" method worked but it was unacceptably clunky. I've spend four days (so far) researching this and trying various things including reinstalling Python many times. And NO it's not the FireWall blocking it. I've tried totally turning Firewall off and it had no effect.

这里有一个重要的线索:一开始我安装并配置了 python 3.3 64 位,一切 都可以工作,包括从用 IDLE 编辑"运行,但最近当我需要一个仅在 Python 2 中可用的库时我安装了 python 2.7.4,从那时起,上述问题就开始了.有一次,我完全删除了两个版本的所有痕迹并重新安装了 Python 3.3.1 64 位.问题依旧.

Here's an important clue: In the beginning I installed and configured python 3.3 64 bit and everything worked including running from "edit with IDLE" but then recently when I needed a library only available in Python 2 I installed python 2.7.4 and from that point on the stated problem began. At one point I completely removed all traces of both versions and reinstalled Python 3.3.1 64 bit. Problem remained.

然后我尝试安装了两个 32 位 版本,但仍然没有运气.然后在我混乱的某个时刻,我失去了使用 IDLE 编辑"的选项,并花了一天的时间尝试了一切,包括在 Regedit 中编辑.那里也没有运气.我重新安装了 Python 3.3.1 仍然没有用空闲编辑"然后最后我卸载了所有版本的 Python 并删除了对环境变量 PATH 和 PYTHONPATH 的 python 引用.然后我把windows注册表里所有Python相关的key都删了,删了卸载懒得删的C:\python33目录.当然,矫枉过正,然后我重新启动了 Windows 并再次安装了 Python 3.3.1 64 位版本,幸运的是,使用 IDLE 编辑"的选项又回来了.我暂时高兴,我打开Windows资源管理器,右键单击一个python程序,选择用空闲编辑"选择运行(闭眼),你猜对了,同样的原始错误消息空闲的子进程未建立连接.IDLE 无法启动子进程或个人防火墙软件阻止连接."

Then I tried have both 32 bit versions installed but still no luck. Then at some point in my muddling around I lost the option to "edit with IDLE" and spent a day trying everything including editing in Regedit. No luck there either. I reinstalled Python 3.3.1 still no "edit with IDLE" then Finally I uninstalled all versions of Python and I removed python references to environment variables PATH and PYTHONPATH. Then I Deleted all the Python related keys in the windows registry, deleted the C:\python33 directory that the uninstall didn't bother to delete. Overkill, of course, then I restarted windows and installed Python 3.3.1 64 bit version again and thankfully the option to 'edit with IDLE' was back. I was momentarily happy, I opened windows explorer, right clicked on a python program, selected 'edit with IDLE' selected RUN (eyes closed) and you guessed it, same original error message "IDLE's subprocess didn't make connection. Either IDLE can't start a subprocess or personal firewall software is blocking the connection."

我完全被这个问题困住了,真的需要帮助.很确定你能看到我,而不是一个快乐的露营者.最重要的是,我想我还不了解 StackOverflow,我在 5 天的时间里一直在各种版本中寻求帮助,但没有任何人做出回应.相信我,我已经查看了 stackoverflow 和其他站点中的所有内容,但看不到答案.几乎好像我必须回答我自己的问题并发布它,麻烦的是,到目前为止我不能.

I am completely stuck on this issue and really need help. Pretty sure that you can see I and not a happy camper. And to top it all off, I guess I don't understand StackOverflow yet, I have had this plea for help up in various versions for 5 days and not one response from anyone. Believe me I've looked at every thing in stackoverflow plus other sites and I can't see the answer. Almost seems like I have to answer my own question and post it, trouble is, so far I can't.

无论如何,感谢您的聆听.是的,我对 Python 还很陌生,但多年来我一直在编程和克服问题(可能太多了).任何人?个人没有熟悉 Python 的人让这变得困难,我如何与 Python 专家进行快速电话交谈?

Anyway, thanks for listening. Yes I'm pretty new to Python but I've been programming and overcoming problems for many years (too many perhaps). anyone? Not personally having someone that is familiar with Python makes this difficult, how can I get in touch with an expert in Python for a quick phone conversation?

推荐答案

我今天遇到了同样的问题.我发现了另一个堆栈溢出帖子,其中有人在与 python 相同的目录中有一个 tkinter.py 文件,他们通过删除该 tkinter.py文件.当我查看我的 python 目录时,我意识到我已经创建了一个名为 random.py 的脚本并将其放在那里.我怀疑它与python中的正常随机模块冲突.当我删除这个文件时,python 又开始工作了.

I had this same problem today. I found another stack overflow post where someone had a tkinter.py file in the same directory as python, and they fixed it by removing that tkinter.py file. When I looked in my python directory, I realized I had created a script called random.py and put it there. I suspect that it conflicted with the normal random module in python. When I removed this file, python started working again.

所以我建议你查看你的主要 python 目录,看看是否有任何 .py 文件可以移动到不同的地方.

So I would suggest you look in your main python directory and see if there are any .py files that you could move to different places.

这篇关于无法通过资源管理器中的 IDLE 运行 Python [2013] - IDLE 的子进程没有建立连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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