问题更新:为什么没有In [1]:提示?
请在Emacs中查看IPython命令行的以下输出。
Python 2.5.2 (r252:60911, Feb 21 2008, 13:11:45) [MSC v.1310 32 bit (Intel)]
Type "copyright", "credits" or "license" for more information.
IPython 0.10 -- An enhanced Interactive Python.
? -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help -> Python's own help system.
object? -> Details about 'object'. ?object also works, ?? prints more.
import sys
sys.path
Out[4]:
['',
'C:\\Python25\\scripts',
'C:\\Python25\\lib\\site-packages\\pyflakes-0.4.0-py2.5.egg',
'C:\\Python25\\lib\\site-packages\\pylint-0.21.3-py2.5.egg',
'C:\\Python25\\lib\\site-packages\\logilab_astng-0.20.3-py2.5.egg',
'C:\\Python25\\lib\\site-packages\\logilab_common-0.52.0-py2.5.egg',
'C:\\Python25\\lib\\site-packages\\unittest2-0.5.1-py2.5.egg',
'C:\\Python25\\Lib\\site-packages\\pyflakes',
'C:\\Python25\\Lib\\site-packages\\Pymacs',
'C:\\Python25\\Lib\\site-packages\\rope',
'C:\\Python25\\Lib\\site-packages\\ropemacs',
'C:\\Python25\\Lib\\site-packages\\ropemode',
'C:\\WINDOWS\\system32\\python25.zip',
'C:\\Python25\\DLLs',
'C:\\Python25\\lib',
'C:\\Python25\\lib\\plat-win',
'C:\\Python25\\lib\\lib-tk',
'C:\\Python25',
'C:\\Python25\\lib\\site-packages',
'C:\\Python25\\lib\\site-packages\\win32',
'C:\\Python25\\lib\\site-packages\\win32\\lib',
'C:\\Python25\\lib\\site-packages\\Pythonwin',
'C:\\Python25\\lib\\site-packages\\IPython/Extensions',
u'C:\\Home\\_ipython']
你好,
我在Windows XP上使用IPython 0.10,Python 2.5和EmacsW32 23.1和ipython.el Rev.2927。当我在Emacs中调用python-shell时,它总是崩溃。有人可以帮助解决这个问题吗?非常感谢!
更新:我已经尝试了修复https://bugs.launchpad.net/ipython/+bug/290228,但没有帮助。
IPython崩溃时包含以下冗长的调试信息:
最佳答案
安装pyreadline应该会有所帮助。
关于python - 请帮助: IPython for Emacs on Windows crashes,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/3867236/