【问题标题】:Sympy Attribute Error: module 'sympy' has no attribute 'derive_by_array'Sympy 属性错误:模块 'sympy' 没有属性 'derive_by_array'
【发布时间】:2020-09-11 03:19:30
【问题描述】:

我在尝试使用 sympy 进行派生时不断收到此错误。 我已经使用 Anaconda Prompt 和“conda update sympy”更新了 sympy,但是在 jupyter-notebook 中尝试使用 derived_by_array 函数时它没有改变。也许更新没有在 jupyter 中注册? 我可以做些什么来解决这个问题?

这是我收到错误的代码的一般示例:

    import sympy as sp
    x= sp.symbols('x')
    f = x**2
    sp.derive_by_array(f,x)

【问题讨论】:

  • 这个例子对我有用。您使用的是什么版本的 sympy?

标签: jupyter-notebook sympy attributeerror


【解决方案1】:

使用 Anaconda Prompt 删除然后安装更新版本的 Anaconda 后,sympy 开始工作。

【讨论】:

    猜你喜欢
    • 2015-11-17
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2023-01-29
    • 2021-07-17
    • 2021-09-25
    • 2018-01-21
    相关资源
    最近更新 更多