如何在Emacs中运行python解释器? [英] How do I run a python interpreter in Emacs?
问题描述
我一直在使用Python IDLE来编辑python文件。 p>
问题是我可以使用Emacs编辑python文件,但是我不知道如何在Emacs中运行python解释器。当我点击切换到解释器时,它说搜索程序:没有这样的文件或目录,python
有人说我需要做一些改变.emacs文件,但我不知道在哪里寻找。
而且我非常没有经验,只是开始学习编程。我不熟悉常用的术语。我一直在寻找解决方案,但我在互联网上发现的大部分文章只会让我感到困惑。
所以问题是:
- 我如何在Emacs中运行python解释器?
- 是否有不同类型的python解释器?如果是这样,为什么他们对一种语言有不同的口译员?
将其放在你的 .emacs
让emacs知道你的python解释器在哪里
(setq python-shell-interpreterpath\to\your\python3.2)
了解 .emacs
,您可以在Emacs本身阅读(Emacs附带的信息手册和信息模式,以帮助阅读该手册)。
在emacs中按以下命令
M - :(info(Emacs )Init文件) RET 。
I just downloaded GNU emacs23.4, and I already have python3.2 installed in Windows7.
I have been using Python IDLE to edit python files.
The problem is that I can edit python files with Emacs but I do not know how to run python interpreter in Emacs. When i click on "switch to interpreter", then it says "Searching for program: no such file or directory, python"
Someone says i need to make some change on .emacs file, but i do not know where to look for.
And I am very unexperienced and just started to learn programming. I am not familiar with commonly used terminologies. I have been searching for solutions but most of the articles i find on the Internet only confuse me.
so the questions are:
- how do i run python interpreter in Emacs?
- are there different kind of python interpreter? if so, why do they have different interpreters for one language?
Place this in your .emacs
to let emacs know where is your python interpretor
(setq python-shell-interpreter "path\to\your\python3.2")
To learn about.emacs
you can read about it in Emacs itself.(Emacs comes with good info manuals and info mode to help to read that manual).
press the following in emacs
M-: (info "(Emacs)Init file") RET.
这篇关于如何在Emacs中运行python解释器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!