问题描述
尝试在带有Symbolic软件包的Mac上运行Octave 安装后,我通过键入以下内容进行了测试(如上面的链接所示):
pkg load symbolic
syms x
但是,我遇到了符号x的以下错误
octave:37> syms x
Symbolic pkg v2.9.0: sh: /usr/anaconda3/bin/python: No such file or directory
error: Cannot run the Python executable "/usr/anaconda3/bin/python"
Try "sympref diagnose" for more information.
error: called from
assert_have_python_and_sympy at line 61 column 7
python_ipc_popen2 at line 79 column 5
python_ipc_driver at line 62 column 15
pycall_sympy__ at line 163 column 11
valid_sym_assumptions at line 38 column 10
assumptions at line 82 column 7
syms at line 97 column 13
octave:37>
然后我尝试了sympref诊断
octave:37> sympref diagnose
Symbolic package diagnostics
============================
Python and SymPy are needed for most features of the Symbolic package.
The Python interpreter is currently: "/usr/anaconda3/bin/python".
Computers may have more than one Python interpreter installed. If you
need to,you can select a different one using the PYTHON environment
variable (see "help sympref"). For example,to use Python 2,try
setenv PYTHON python2
sympref reset
Attempting to run /usr/anaconda3/bin/python -c "print(\"Python says hello\")"
sh: /usr/anaconda3/bin/python: No such file or directory
status = 127
output =
Unfortunately,that command Failed!
We expected to see "status = 0" and "output = Python says hello".
* Is there an error message above?
* Do you have Python installed?
* Please try using "setenv" as described above.
我认为这与python目录的名称有关。 有两个相同的问题:error: 'python_ipc_popen2' undefined near line 62 column 15 When running Octave
Installing Octave Symbolic Package using SymPy (macOS) - Can't get SymPy to work
预先感谢
如果我也删除了蟒蛇:
octave:1> pkg load symbolic
octave:2> syms x
Symbolic pkg v2.9.0: sh: /Users/usr/octave/symbolic- 2.9.0/bin/py27.exe: Permission denied
error: Cannot run the Python executable "py27.exe"
Try "sympref diagnose" for more information.
error: called from
assert_have_python_and_sympy at line 61 column 7
python_ipc_popen2 at line 79 column 5
python_ipc_driver at line 62 column 15
pycall_sympy__ at line 163 column 11
valid_sym_assumptions at line 38 column 10
assumptions at line 82 column 7
syms at line 97 column 13
octave:2> sympref diagnose
Symbolic package diagnostics
============================
Python and SymPy are needed for most features of the Symbolic package.
The Python interpreter is currently: "py27.exe".
Computers may have more than one Python interpreter installed. If you
need to,try
setenv PYTHON python2
sympref reset
Attempting to run py27.exe -c "print(\"Python says hello\")"
sh: /Users/usr/octave/symbolic-2.9.0/bin/py27.exe: Permission denied
status = 126
output =
Unfortunately,that command Failed!
We expected to see "status = 0" and "output = Python says hello".
* Is there an error message above?
* Do you have Python installed?
* Please try using "setenv" as described above.
* Most systems search the PATH environment when looking for commands.
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)