【问题标题】:Scipy output error :undefined symbol: sgegv_Scipy 输出错误:未定义符号:sgegv_
【发布时间】:2016-03-03 07:17:43
【问题描述】:

当我尝试运行 keras 示例时,程序输出错误,

/usr/local/lib/python2.7/dist-packages/scipy/linalg/lapack.py in <module>()
    354 from .blas import find_best_blas_type as find_best_lapack_type
    355 
--> 356 from scipy.linalg import _flapack
    357 try:
    358     from scipy.linalg import _clapack

ImportError: /usr/local/lib/python2.7/dist-packages/scipy/linalg/_flapack.so: undefined symbol: sgegv_

有人知道怎么解决吗?

【问题讨论】:

  • 什么操作系统?你是如何安装 scipy 的?安装过程中有什么错误吗?
  • 另外,您使用的是哪个 BLAS?您是否手动编译/安装了 LAPACK?
  • @cel Ubuntu14.04。我尝试使用 pip 和二进制代码。没有错误,但有些警告似乎并不重要。
  • @DanielRenshaw 嗨!这是手动编译/安装的最新 BLAS 和 LAPACK。

标签: python scipy theano lapack keras


【解决方案1】:

无需降级您的 lapack。最好升级你的 scipy

pip install git+https://github.com/scipy/scipy.git

【讨论】:

  • 这样做。 较新的 LAPACK 很好。然而,过时的 SciPy 很糟糕。
【解决方案2】:

在 lapack 3.6.0 中,一些在 scipy 中使用的不推荐使用的函数被删除了。 您必须使用 lapack 3.5.0 或更低版本才能恢复正常。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2012-12-02
    • 1970-01-01
    • 2012-10-10
    • 2013-10-22
    • 2014-06-01
    • 2015-11-13
    • 1970-01-01
    相关资源
    最近更新 更多