Unable to import numpy: Error: /usr/lib/liblapack.so.3: undefined symbol: gotoblas

前端 未结 2 597
旧巷少年郎
旧巷少年郎 2021-01-17 19:20

When I try to import numpy, I get the following error:

/usr/local/lib/python2.7/dist-packages/numpy/linalg/__init__.py in ()
     49 from .info         


        
2条回答
  •  一生所求
    2021-01-17 20:02

    To solve these issues, I followed the install bash script here: https://gist.github.com/amirsani/d2aa0763cc138902bf73

    I still had the same error occur during testing at the ending of all the installation so I did this

    sudo apt-get remove libopenblas-base
    

    Which I got from here: Installing lapack for numpy

    This appears to have solved my original problem (similar to yours but not identical) where I was attempting to run the following from ipython

    from ortools.linear_solver import pywraplp
    

    which produced an identical error to the one you had.

提交回复
热议问题