当我尝试导入 numpy 时,出现以下错误:
/usr/local/lib/python2.7/dist-packages/numpy/linalg/__init__.py in <module>()
49 from .info import __doc__
50
---> 51 from .linalg import *
52
53 from numpy.testing import Tester
/usr/local/lib/python2.7/dist-packages/numpy/linalg/linalg.py in <module>()
27 )
28 from numpy.lib import triu, asfarray
---> 29 from numpy.linalg import lapack_lite, _umath_linalg
30 from numpy.matrixlib.defmatrix import matrix_power
31 from numpy.compat import asbytes
ImportError: /usr/lib/liblapack.so.3: undefined symbol: gotoblas
我已经尝试过在 debian wheezy 上的 virtualenv 中使用 pip 安装 matplotlib 时通过 import numpy: lapack_lite.so: undefined symbol and GotoBLAS error 发布的解决方案
我已经尝试了以下所有选项:
vvkulkarni@galileo:~$ sudo update-alternatives --config liblapack.so.3
There are 3 choices for the alternative liblapack.so.3 (providing /usr/lib/liblapack.so.3).
Selection Path Priority Status
------------------------------------------------------------
* 0 /usr/lib/openblas-base/liblapack.so.3 40 auto mode
1 /usr/lib/atlas-base/atlas/liblapack.so.3 35 manual mode
2 /usr/lib/lapack/liblapack.so.3 10 manual mode
3 /usr/lib/openblas-base/liblapack.so.3 40 manual mode
我正在使用 Ubuntu 14.1 和 python 2.7