简体   繁体   English

Python IDLE Shell无法打开

[英]Python IDLE shell not opening

I am using Windows 8.1 and have installed OpenCV for Python 2.7. 我正在使用Windows 8.1,并已安装适用于Python 2.7的OpenCV。 I was able to complete the installation. 我能够完成安装。 But I have not been able to open the python IDLE shell. 但是我无法打开python IDLE shell。 Whenever I click on it, It opens for a second and disappears. 每当我单击它时,它就会打开一秒钟,然后消失。

I did try all the steps mentioned in this link Python IDLE won´t start 我确实尝试了此链接中提到的所有步骤Python IDLE无法启动

Also I could not find the environment variable called TCL_LIBRARY in my system. 另外,我在系统中找不到名为TCL_LIBRARY的环境变量。

THIS WORKS😎: 这项工作😎:

I have installed Anaconda python,so 我已经安装了蟒蛇蟒蛇,所以

open python\\Lib\\idlelib 打开python \\ Lib \\ idlelib

There you can find idle file of python 在那里您可以找到python的空闲文件

This will open python shell 这将打开python shell

Pin it to taskbar and work 将其固定到任务栏并工作

我对ActivePython 2.7有一些问题,在安装x86版本的ActivePython时已解决(最初我尝试使用x64)

I am not sure what exactly the problem was. 我不确定到底是什么问题。 It might have been various versions conflict or just that my installation was not right. 可能是各种版本冲突或只是我的安装不正确。 I removed every previously installed versions and started from scratch, and it seems to be working fine for now. 我删除了所有以前安装的版本,并从头开始,现在看来一切正常。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM