【问题标题】:octave not reading anaconda python on linux八度没有在linux上读取anaconda python
【发布时间】:2018-04-13 05:55:01
【问题描述】:

我在ubuntu 16.04上安装了八度,安装了符号包并将其加载到八度

试图创建一个符号字符

收到此错误:

syms x OctSymPy v2.6.0: this is free software without warranty, see
source. Initializing communication with SymPy using a popen2() pipe.
error: SymPy is installed but is too old (sympy-0.7.6.1 found, 1.0
required) error: called from
    assert_have_python_and_sympy at line 44 column 7
    python_ipc_popen2 at line 78 column 5
    python_ipc_driver at line 59 column 13
    python_cmd at line 164 column 9
    valid_sym_assumptions at line 38 column 10
    assumptions at line 82 column 7
    syms at line 97 column 13

使用 conda version 1.1 更新了 sympy

【问题讨论】:

  • 这似乎不对。你确定你升级了 sympy (没有任何错误信息?)。尝试通过其他方式重新安装它

标签: python linux anaconda octave conda


【解决方案1】:

我也有同样的问题。我可以在系统的 Python 提示符中导入 SymPy,因为我是由 Anaconda 安装的,但 Octave 无法识别它。我所做的是将 Octave 中的 PYTHON 环境变量设置为 Anaconda bin 目录。也就是说,我做到了

which python #in terminal: which gives /path/to/anaconda/bin/python

然后

setenv PYTHON /path/to/anaconda/bin/python
sympref reset

感谢this guy

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2019-09-13
    • 2016-11-26
    • 2015-09-01
    • 2017-12-13
    • 1970-01-01
    • 2019-12-29
    • 1970-01-01
    • 2019-06-12
    相关资源
    最近更新 更多