【发布时间】:2015-03-27 05:59:18
【问题描述】:
我已经在 Linux 上安装了 Spyder(准确地说是 Mint 17),并使用 ipython、numpy 等创建了一个科学的 virtualenv (sci)。这个想法是改变我的虚拟 env 为 python 2 / python 3 并多一点比安装整个 Anaconda / python(x,y) 更灵活。我现在无法让 ipython 在 Spyder 中工作。
我去了
Tools->Preferences->Console->Advanced settings
使用以下 Python 解释器
/home/mike/envs/sci/bin/ipython
但这并没有启动 ipython。它响应
...
Execute the given command[TerminalIPythonApp] CRITICAL | Bad config encountered during initialization:
[TerminalIPythonApp] CRITICAL | Unrecognized flag: '-u'
...
它也不会在控制台下显示“打开 IPython 控制台”。
任何想法我缺少什么?
干杯,迈克
【问题讨论】:
-
Use the following Python interpreter->/home/mike/envs/sci/bin/ipython,那是ipython解释器,不是python解释器:) -
这就是我的想法,但是如何让 ipython 启动并运行呢?迈克
-
你试过直接输入
/home/mike/envs/sci/bin/python吗?我不能保证,但可能 spyder 会负责启动ipython。 -
@cel 是对的,你需要指向那里的python解释器。