简体   繁体   English

在python 2.7.3中导入sleekxmpp时,IDLE挂起

[英]IDLE hangs when importing sleekxmpp in python 2.7.3

Actually IDLE doesnt hang but kind of behaves erratically when the Sleekxmpp library is imported. 实际上,IDLE不会挂起,但是在导入Sleekxmpp库时,其行为会异常。 I can type in the idle but it will not recognize commands. 我可以输入空闲状态,但无法识别命令。 But runs fine on python 3.2 in the same machine. 但是在同一台机器上的python 3.2上运行良好。 All other packages works fine on the 2.7 version of python. 所有其他软件包在2.7版本的python上都可以正常工作。 After importing, the idle will not execute any more command entered. 导入后,空闲状态将不再执行输入的任何其他命令。 It imports fine on Python 2.7.3 command-line interface. 它可以在Python 2.7.3命令行界面上很好地导入。 Just doesn't work on IDLE. 只是在IDLE上不起作用。 Please help me. 请帮我。 I have tried both 'master' and 'develop' version of the package. 我已经尝试过该软件包的“主版本”和“开发版本”。 What would be the problem? 有什么问题吗?

You answered your own question. 你是在自问自答。 IDLE really is the worst IDE in python, 27. I would use ipython if you really want to use 27, or IDLE in python 3.2.3, if you want to update. 在Python 27中,IDLE确实是最差的IDE。如果您确实要使用27,则我将使用ipython;而在Python 3.2.3中,如果要更新,则应使用IDLE。 ipython can be found here and python 3.2.3 can be found here . ipython可以在这里找到,python 3.2.3可以在这里找到。

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

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