gpt4 book ai didi

python - 如何修复 Ubuntu 20.04 中的 Octave 符号包错误?

转载 作者:行者123 更新时间:2023-12-04 19:06:10 25 4
gpt4 key购买 nike

我已经安装了符号包。当我尝试使用符号时,Octave 的命令窗口中有一些与 python 相关的错误。以下是输出:

> pkg load symbolic
>> syms a
Symbolic pkg v2.9.0: Traceback (most recent call last):
File "<stdin>", line 28, in <module>
AttributeError: '_PrintFunction' object has no attribute '__globals__'
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "<stdin>", line 12, in octoutput_drv
File "<stdin>", line 54, in octoutput
File "<stdin>", line 55, in octoutput
AttributeError: module 'sympy' has no attribute 'compatibility'
Closing the Python communications link.

error: Python exception: AttributeError: '_PrintFunction' object has no attribute '__globals__'
occurred in python_header import block.
Try "sympref reset" and repeat your command?
(consider filing an issue at https://github.com/cbm755/octsympy/issues)
error: called from
pycall_sympy__ at line 191 column 5
valid_sym_assumptions at line 38 column 10
assumptions at line 82 column 7
syms at line 97 column 13
>> Opening in existing browser session.
知道如何解决这个问题吗?
谢谢。

最佳答案

该错误是一个已知错误 (https://github.com/cbm755/octsympy/issues/1035)
您需要使用旧版本的 sympy sunch 作为 1.5.1 版本

关于python - 如何修复 Ubuntu 20.04 中的 Octave 符号包错误?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/69007370/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com