开发者

Python in Emacs (no modes, plain installation)

I'm trying to start the Python interpreter in Emacs 22.3.1. I have no modes installed (nor I'm planning at the moment). Emacs recognises the Python file, but I have this in the initial message:

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

The .emacs file has:

(custom-set-variables
'(python-python-command "python")
  )

I tried editing defcustom python-python-command "python" in python.el to set "python" t开发者_如何学编程o "c:\python32\python.exe", but no luck.

Pythonpath is set in Windows path.


The answer has two parts. The first thing that was wrong was the extra space character in Windows path settings. This caused Emacs not to fail while calling python.

The second part was Emacs freezing. Updating to the newest version solved the problem.

Thanks everyone for their comments!

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜