更改 emacs 的 python 解释器 [英] Changing python interpreter for emacs

查看:34
本文介绍了更改 emacs 的 python 解释器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Emacs 使用旧版本的 python(2.3) 我有默认的 python 模式,有没有办法告诉 emacs 使用我在主目录中的新版本?

Emacs uses an older version of python(2.3) i have for the default python mode, is there a way for me to tell emacs to use the newer version that i have in my home directory?

顺便说一句,我使用的是红帽发行版并且没有 root 权限.

btw I'm using a red hat distro and dont have root privileges.

推荐答案

检查 customize-group 想要调整的东西是个好习惯.就这样做:

It is good habit to check customize-group of things you wanna tweak. Just do:

M-x customize-group RET python RET

您现在有多种选择,其中一个应该很有趣:

you've got now multiple options of which one should be interesting:

Python Python Command

您可以在那里对其进行自定义并保存以供后续会话使用.

You can customize it there and Save for further sessions.

这篇关于更改 emacs 的 python 解释器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆