Installing lapack for numpy

后端 未结 4 948
庸人自扰
庸人自扰 2020-12-01 10:14

Running Ubuntu 11.10 + python2.7...built numpy from source and installed it, but when I go to install it, I get

ImportError: /usr/lib/liblapack.so.3gf: unde         


        
4条回答
  •  南方客
    南方客 (楼主)
    2020-12-01 11:13

    Try checking the LD_LIBRARY_PATH. You might point in there to another version of that library that does not support the symbol the numpy call needs. I had the same situation on my Mac.

    But be careful, the problem might not be visible directly, because one library could link to the next using the LD_LIBRARY_PATH.

    You can check if you see a difference in the following command with and without the LD_LIBRARY_PATH set (to remove temporarily for the active shell: unset LD_LIBRARY_PATH):

    ldd /usr/lib/liblapack.so.3gf

    In my case, libraries provided by the ISIS software system clashed with the onboard libraries that numpy requires.

提交回复
热议问题