[英]Python in Emacs (no modes, plain installation)
我正在嘗試在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凍結。 更新到最新版本解決了問題。
謝謝大家的評論!
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.