【问题标题】:python3 interpreter for emacs instead of 2.7用于 emacs 而不是 2.7 的 python3 解释器
【发布时间】:2012-06-21 18:56:07
【问题描述】:

我是 Fedora 17 和 Emacs 的新手,不知道如何告诉我的 emacs 使用最新版本的 python。

我发现了一些信息,我应该更改 python-python-command 变量或显示新解释器的路径,该怎么做?

【问题讨论】:

标签: emacs python-3.x python-2.7 fedora


【解决方案1】:
(setq py-python-command "/usr/bin/python3.1")

应该添加到您的 .emacs 文件中

【讨论】:

  • vi .emacs in home directory in insert mode 我已将此行放在文件末尾。 “Esc”(退出插入模式)和 :x 以保存更改。所有的作品都谢谢你。
  • @ГеннадийРябкин,扩展 HaloWebMaster 所说的内容,如果答案对您有帮助,您应该点赞;如果它解决了您的问题,请单击它旁边的复选标记的轮廓(“接受”答案)。 The FAQ 有更多细节。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2014-12-03
  • 1970-01-01
  • 1970-01-01
  • 2018-09-19
相关资源
最近更新 更多