zoukankan      html  css  js  c++  java
  • python idle 错误 subprocess didn't make connection

    今天打开python idle不反应。然后通过网上搜索让我在安装文件夹下点击idle.py 弹出如图所看到的的错误,进行了非常多尝试。任然没有得到解决。可是在尝试过程中发现了大家所说问题所在都是由于新建了一个.py脚本跟系统的.py文件冲突导致出现错误。

    I had this same problem today. I found another stack overflow post where someone had a tkinter.pyfile 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.

    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.

    Yes, I also had named a program 'random.py' lol. Something in Stackoverflow clued me in so I renamed my program. By that time I'd already lost "edit with IDLE" so I added the registry entry: HKEY_CLASSES_ROOTSystemFileAssociations.pyshelledit with IDLE (py3)command setting the value to: c:python33pythonw.exe c:python33libidlelibidle.pyw -e %1 Then edit with IDLE was back and I ran the program from IDLE and it WORKED! I can't thank you enough for responding to my question and nailing it, I really appreciate it. Wish would let me vote UP 

    这是当中一些网友回答,来源自:http://stackoverflow.com/questions/15888186/cant-run-python-via-idle-from-explorer-2013-idles-subprocess-didnt-make-c

    还有这篇博客中也是说到类似新建脚本与系统脚本冲突问题然后使得出现上图错误问题:http://www.cnblogs.com/skyhiter/p/3381385.html

    我对上面这些说法一一进行尝试都没能解决这个问题。所以我简单粗暴把python编译器全然卸载,进行重装,删除自己写的全部可能导致与系统.py文件冲突的脚本。问题得到解决,仅仅是曾经配置的各种python工具包须要又再一次进行配置。

  • 相关阅读:
    AJPFX总结hashmap和hashtable的区别
    AJPFX分享JAVA修饰符详解
    AJPFX分享java排序之希尔排序
    Mysql框架---HMySql
    html/css实现聊天布局
    Java连接Mysql
    微信小程序九宫格布局
    Android设计模式——MVP
    iOS与H5交互(WKWbebView)
    iOS MJExtension的使用
  • 原文地址:https://www.cnblogs.com/mengfanrong/p/5194334.html
Copyright © 2011-2022 走看看