python - 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 下工作。关于如何解决问题的任何想法?
解决方案
你应该做 setenv PYTHON full_path_to_python.exe
在我的情况下是 setenv PYTHON C:\Users\username\anaconda3\python
推荐阅读
- r - 为什么 ifelse 和 if 语句不一样?
- python - 如何从列表字典的值中获取所有键?
- javascript - 更改后的jexcel表SUM列
- html - 带有“section”元素的语义
- servicestack-text - FromObjectDictionary 方法中的错误返回值
- c# - DevExtreme - 带有 JSON 数据源和表单对象的手风琴内部表单
- swift - 主窗口并不总是在 applicationDidFinishLaunching 中初始化
- delphi-xe7 - 为什么 Delphi XE 7 将组件/事件定义放在错误的部分?
- android - MvvmCross MvxListView 项目未在 Android 上呈现
- css - 在 Flex 中,当 flex 方向为 row-reverse 时,将项目向左对齐