Ocatave符号“Python无法导入SymPy”
发布时间:2020-12-20 13:14:24 所属栏目:Python 来源:网络整理
导读:安装octave,sympy(通过anaconda)和符号包之后,我试图以八度为单位运行此行作为脚本的一部分: syms nn nb x 当我这样做时,我收到此消息: warning: the 'syms' function belongs to the symbolic package from Octave Forgewhich you have installed but not
安装octave,sympy(通过anaconda)和符号包之后,我试图以八度为单位运行此行作为脚本的一部分:
syms nn nb x 当我这样做时,我收到此消息: warning: the 'syms' function belongs to the symbolic package from Octave Forge which you have installed but not loaded. To load the package,run `pkg load symbolic' from the Octave prompt. 后: pkg load symbolic syms nn nb x 我明白了: Traceback (most recent call last): File "<string>",line 1,in <module> File "sympy/__init__.py",line 27,in <module> raise ImportError("It appears 2to3 has been run on the codebase. Use " ImportError: It appears 2to3 has been run on the codebase. Use Python 3 or get the original source code. OctSymPy v2.4.0: this is free software without warranty,see source. Initializing communication with SymPy using a popen2() pipe. error: Python cannot import SymPy: have you installed SymPy? error: called from assert_have_python_and_sympy at line 37 column 5 python_ipc_popen2 at line 78 column 5 python_ipc_driver at line 57 column 13 python_cmd at line 166 column 9 sym at line 365 column 5 syms at line 162 column 9 我正在使用OSX El Capitan,我通过自制软件安装了Octave. 如果我是诚实的,我不知道这里发生了什么……是不是八度音程无法与同情交流?如果是这样,我猜可能有一个简单的方法来解决这个问题?如果不是这样我该怎么办?我愿意重新开始这个过程. 我想提前为任何格式问题道歉,这是我第一次问.我没有看到任何有关此问题的问题,但如果我错过了一些明显的问题,我会再次感到抱歉. 谢谢! 解决方法
看起来你有一个旧版本的SymPy.尝试升级到最新版本(撰写本文时为1.0).
(编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |