【问题标题】:Installing IPython in emacs在 emacs 中安装 IPython
【发布时间】:2014-05-28 18:36:01
【问题描述】:

如果这是转发,我深表歉意。我在问题中找不到类似的问题。

我正在尝试将 emacs 设置为我的 python IDE,其中包含 IPython。基本按照这个http://www.jesshamrick.com/2012/09/18/emacs-as-a-python-ide/

我的 emacs shell 中的 python 版本是 2.7.5,而终端中的版本是 2.7.6。但是在 emacs shell 中输入 ipython 显示 ipython 没有安装,但我能够将 ipython 安装到终端。

我想知道如何将 ipython 插件安装到 .emacs 文件中。当您说安装时,是否意味着复制文件并将其放在那里?如果是,我已经这样做了。但是,当我尝试运行 python 程序时,它显示“正在搜索程序:没有这样的文件或目录,ipython。提前感谢您的帮助。

【问题讨论】:

标签: python emacs ipython python-mode


【解决方案1】:

您的 emacs 似乎找不到 ipython。您可能需要设置 PATH 环境变量,但现在,我认为这可行...

在您的终端中执行which ipython,您将获得您的 ipython 可执行路径。然后在您的 .emacs 文件中,将以下行中的 "ipython" 更改为您获得的任何绝对路径。

(setq-default py-shell-name "ipython")

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-06-27
    • 1970-01-01
    • 2017-09-27
    • 2015-06-17
    • 1970-01-01
    相关资源
    最近更新 更多