我正在尝试在 Emacs 22.3.1 中启动 Python 解释器。我没有安装任何模式(目前也没有计划)。 Emacs 识别 Python 文件,但我在初始消息中有这个:
Loading python (compiled; note, source file is newer)...
Loading easymenu...done
Loading python (compiled; note, source file is newer)...done
Loading vc-git...done
Loading comint...done
apply: Searching for program: no such file or directory, python
.emacs 文件有:
(custom-set-variables
'(python-python-command "python")
)
我尝试在 python.el
中编辑 defcustom python-python-command "python"
以将 "python"设置为 "c:\python32\python.exe",但没有运气。
Python路径在Windows路径中设置。
最佳答案
答案分为两部分。错误的第一件事是 Windows 路径设置中的额外空格字符。这导致 Emacs 在调用 python 时不会失败。
第二部分是 Emacs 卡住。更新到最新版本解决了这个问题。
感谢大家的评论!
关于Emacs 中的 Python(无模式,普通安装),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6418257/