gpt4 book ai didi

Octave 4.2.2 和 sympy 1.6

转载 作者:行者123 更新时间:2023-12-03 20:25:26 25 4
gpt4 key购买 nike

我正在尝试将 Octave 4.2.2 与 Symbolic pkg v.2.9.0 一起使用,但出现与 sympy 包相关的错误:

Your kit looks good for running the Symbolic package.  Happy hacking!

>>
>> syms
Symbolic variables in current scope:
>> a = sym( "a" );
Symbolic pkg v2.9.0: /home/usuario/.local/lib/python3.6/site-packages/sympy/__init__.py:676: SymPyDeprecationWarning:

importing sympy.core.compatibility with 'from sympy import *' has been
deprecated since SymPy 1.6. Use import sympy.core.compatibility
instead. See https://github.com/sympy/sympy/issues/18245 for more
info.

deprecated_since_version="1.6").warn()
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
File "/home/usuario/.local/lib/python3.6/site-packages/sympy/__init__.py", line 677, in __getattr__
return getattr(self.mod, name)
AttributeError: module 'sympy.core.compatibility' has no attribute 'integer_types'
Waiting................warning: readblock: timeout of 30 exceeded, breaking out
warning: called from
readblock at line 101 column 7
python_ipc_popen2 at line 99 column 14
python_ipc_driver at line 62 column 13
pycall_sympy__ at line 163 column 9
sym at line 452 column 9
no output so far

error: ipc_popen2: something wrong? timed out starting python
error: called from
python_ipc_popen2 at line 101 column 7
python_ipc_driver at line 62 column 13
pycall_sympy__ at line 163 column 9
sym at line 452 column 9
>> a
error: 'a' undefined near line 1 column 1
>>

我深入研究代码并找到这两个引用:

https://github.com/sympy/sympy/pull/18245
https://github.com/sympy/sympy/pull/19316

但我不是程序员,所以非常感谢任何想法。

我试图卸载 sympy-1.6 并安装 sympy-1.5 但这不起作用。

谢谢你的时间。

丹尼尔

最佳答案

我设法找到了答案。
问题出在 sympy 1.6 版上,所以我使用 pip3 将其降级到 1.5.1 版。

关于Octave 4.2.2 和 sympy 1.6,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62354154/

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