Emacs 中的 Python(无模式,普通安装)

标签 python emacs

我正在尝试在 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/

相关文章:

python - Dockerfile包含一个写入输出文件的python脚本,但未在容器上创建输出文件

python - 使用 Python 解析 html

带有集成包管理系统的 Python IDE

emacs 为什么我的文件名末尾有哈希值,即#test.c#

emacs - 如何禁用 Flyspell?

python - 如何在 Flask 中生成临时下载?

python - 在服务器: AttributeError: 'PosixPath' object has no attribute 'startswith' 上运行collectstatic

emacs - dired-omit-toggle 在 Emacs 23.2 中在哪里消失了?

emacs 中的 Python 高亮显示

function - 有没有办法在 emacs lisp 中取消定义函数?