我在ubuntu 16.04
上安装了octave,安装了符号包并加载到octave
试图创造一个象征性的角色
得到这个错误:
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
最佳答案
我遇到了同样的问题。我可以在系统的 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 .
关于python - Octave 不在 Linux 上读取 anaconda python,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49810184/