Chao Ding
Chao Ding

Reputation: 41

Scipy output error :undefined symbol: sgegv_

When I tried running keras examples, the program output an error,

/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_

Anyone knows how to solve it?

Upvotes: 4

Views: 1460

Answers (2)

Alvaro Ulloa
Alvaro Ulloa

Reputation: 75

No need to downgrade your lapack. It is better to upgrade your scipy

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

Upvotes: 3

Evgeny Tikhonov
Evgeny Tikhonov

Reputation: 31

In lapack 3.6.0 some deprecated functions which are used in scipy were dropped. You have to use lapack 3.5.0 or lower in order to get things to work back.

Upvotes: 2

Related Questions