4

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?

Chao Ding
  • 41
  • 3

2 Answers2

3

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

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

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.

チーズパン
  • 2,752
  • 8
  • 42
  • 63