安装 Octave 的 octsympy:即使在确定 sympref 诊断后也会出错 [英] Installation of octsympy of Octave: error even after OK sympref diagnose

查看:112
本文介绍了安装 Octave 的 octsympy:即使在确定 sympref 诊断后也会出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在安装 Octave 符号包 octsympy 时发现问题.

I am finding problems with the installation of the symbolic package octsympy of Octave.

我在 Windows 10 下安装了 GNU Octave 版本 5.2.0.我用 Anaconda 安装了 python3.

I have GNU Octave Version 5.2.0 under Windows 10. I have python3 installed with Anaconda.

我已按照以下步骤操作:

I have followed the following steps:

  1. 下载文件symbolic-2.9.0.tar.gz.
  2. 使用 pkg install symbols-2.9.0.tar.gz 安装.
  3. pkg 符号加载.
  4. setenv PYTHON C:\Users\...\Anaconda3\python.
  5. sympref 诊断.
  1. Download the file symbolic-2.9.0.tar.gz.
  2. Install with pkg install symbolic-2.9.0.tar.gz.
  3. pkg load symbolic.
  4. setenv PYTHON C:\Users\...\Anaconda3\python.
  5. sympref diagnose.

在执行最后一个命令后,我收到消息:您的套件看起来很适合运行 Symbolic 包.

After the last command, I receive the message: Your kit looks good for running the Symbolic package.

但是,当我尝试诸如 sym('1/2') 之类的符号命令时,我收到错误消息:

However, when I try any symbolic command such as sym('1/2'), I receive error messages:

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

谁能帮忙解决这个问题?谢谢.

Can anyone help to solve this problem? Thank you.

推荐答案

此问题已报告为错误:https://github.com/cbm755/octsympy/issues/1023.开发者表示将在新版本中修复.

This issue has been reported as a bug: https://github.com/cbm755/octsympy/issues/1023. The developer indicated that it will be fixed in a new release.

如果这个问题很紧急,解决方案是降级SymPy的版本.

If this issue is urgent, the solution is to downgrade the version of SymPy.

如果这个问题不紧急,一个选项是等待 octsympy 的新版本.

If this issue is not urgent, an option is to wait for a new release of octsympy.

这篇关于安装 Octave 的 octsympy:即使在确定 sympref 诊断后也会出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆