首页 > 解决方案 > Octave 的符号包(版本 2.8.0)在 Windows 10 中不起作用

问题描述

我已按照此处给出的说明的选项 1 和 2

https://github.com/cbm755/octsympy/wiki/Notes-on-Windows-installation

不过,在加载符号包后,我得到了

>> pkg load symbolic
>> syms x
error: 'python_ipc_popen2' undefined near line 59 column 17
error: called from
    python_ipc_driver at line 59 column 15
python_cmd 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

这是输出sympref diagnose

>> sympref diagnose

Symbolic package diagnostics
============================

Python and SymPy are needed for most features of the Symbolic package.

The Python interpreter is currently: "/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 3, try
    setenv PYTHON python3
    sympref reset

Attempting to run /anaconda3/bin/python -c "print(\"Python says hello\")"

Le chemin d’accès spécifié est introuvable.
status =  1
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.
    Your path seems to be: (...)

我安装了 Anaconda 3。我在 Windows 10 下工作。关于如何解决问题的任何想法?

标签: pythonanacondaoctave

解决方案


你应该做 setenv PYTHON full_path_to_python.exe

在我的情况下是 setenv PYTHON C:\Users\username\anaconda3\python


推荐阅读