I've just started learning Emacs, and decided to start writing Python in it. I tried using C-c C-c to execute the current buffer, but I get the message Searching for program: no such file or directory, python
.
我刚刚开始学习Emacs,并决定开始编写Python。我尝试使用C-c C-c来执行当前缓冲区,但是我收到了搜索程序的消息:没有这样的文件或目录,python。
I've looked on google, but I'm none the wiser as to how to sort this out (bear in mind I know next to nothing about Emacs!)
我看过google,但我不知道怎么解决这个问题(记住我对Emacs几乎一无所知!)
2 个解决方案
#1
I managed to work it out, following the instructions here. I used python-mode.el, when before I had been using Emacs' built-in python.el, but according to emacswiki, "The version in Emacs 22 has a bunch of problems". Hope someone else running Emacs 22 on Windows XP finds this useful one day!
我按照这里的说明设法解决了这个问题。在我使用Emacs的内置python.el之前,我使用过python-mode.el,但根据emacswiki,“Emacs 22中的版本有一堆问题”。希望在Windows XP上运行Emacs 22的其他人有一天发现这个有用!
#2
Try adding C:\Python26
(or whatever Python you have installed) to the PATH
environment variable.
尝试将C:\ Python26(或您安装的任何Python)添加到PATH环境变量中。
I find python-mode and yasnippet to be useful for writing Python in emacs.
我发现python-mode和yasnippet对于在emacs中编写Python很有用。
#1
I managed to work it out, following the instructions here. I used python-mode.el, when before I had been using Emacs' built-in python.el, but according to emacswiki, "The version in Emacs 22 has a bunch of problems". Hope someone else running Emacs 22 on Windows XP finds this useful one day!
我按照这里的说明设法解决了这个问题。在我使用Emacs的内置python.el之前,我使用过python-mode.el,但根据emacswiki,“Emacs 22中的版本有一堆问题”。希望在Windows XP上运行Emacs 22的其他人有一天发现这个有用!
#2
Try adding C:\Python26
(or whatever Python you have installed) to the PATH
environment variable.
尝试将C:\ Python26(或您安装的任何Python)添加到PATH环境变量中。
I find python-mode and yasnippet to be useful for writing Python in emacs.
我发现python-mode和yasnippet对于在emacs中编写Python很有用。