安装 Octave 的 octsympy:即使在 OK sympref 诊断后仍然出错
Installation of octsympy of Octave: error even after OK sympref diagnose
我发现 Octave 的符号包 octsympy 安装有问题。
我在 Windows 10 下安装了 GNU Octave Version 5.2.0。我 python3 安装了 Anaconda。
我遵循了以下步骤:
- 下载文件
symbolic-2.9.0.tar.gz
。
- 安装
pkg install symbolic-2.9.0.tar.gz
。
pkg load symbolic
.
setenv PYTHON C:\Users\...\Anaconda3\python
.
sympref diagnose
.
最后一条命令后,我收到消息:您的工具包看起来很适合 运行 符号包。
但是,当我尝试 sym('1/2')
等任何符号命令时,我收到错误消息:
AttributeError: module 'sympy.core.compatibility' has no attribute 'integer_types'
error: Python exception: AttributeError: module 'sympy.core.compatibility' has no attribute 'integer_types' occurred while copying variables to Python.
error: called from pycall_sympy__ at line 191 column 5; sym at line 484 column 11
谁能帮忙解决这个问题?谢谢。
此问题已报告为错误:https://github.com/cbm755/octsympy/issues/1023。开发者表示会在新版本中修复。
如果这个问题很紧急,解决方法是降级SymPy的版本。
如果这个问题不紧急,一个选择是等待 octsympy 的新版本。
我发现 Octave 的符号包 octsympy 安装有问题。
我在 Windows 10 下安装了 GNU Octave Version 5.2.0。我 python3 安装了 Anaconda。
我遵循了以下步骤:
- 下载文件
symbolic-2.9.0.tar.gz
。 - 安装
pkg install symbolic-2.9.0.tar.gz
。 pkg load symbolic
.setenv PYTHON C:\Users\...\Anaconda3\python
.sympref diagnose
.
最后一条命令后,我收到消息:您的工具包看起来很适合 运行 符号包。
但是,当我尝试 sym('1/2')
等任何符号命令时,我收到错误消息:
AttributeError: module 'sympy.core.compatibility' has no attribute 'integer_types'
error: Python exception: AttributeError: module 'sympy.core.compatibility' has no attribute 'integer_types' occurred while copying variables to Python.
error: called from pycall_sympy__ at line 191 column 5; sym at line 484 column 11
谁能帮忙解决这个问题?谢谢。
此问题已报告为错误:https://github.com/cbm755/octsympy/issues/1023。开发者表示会在新版本中修复。
如果这个问题很紧急,解决方法是降级SymPy的版本。
如果这个问题不紧急,一个选择是等待 octsympy 的新版本。