Repository navigation
SciPy 安装无法识别 BLAS 和 LAPACK #188
shenweiyan
announced in
1.8-运维
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
这个问题出现在
import sklearn时候,调用from scipy.linalg import _flapack,出现undefined symbol: sgeqrt_错误。这个错误的核心原因是:
scipy.linalg._flapack在运行时无法找到LAPACK函数的sgeqrt_。问题分析
结合
scipy.show_config()输出,可以明确以下几点。sgeqrt_是 LAPACK 3.3.0+ 引入的 QR 分解函数。sgeqrt函数的。解决方法
这时候看到多了一个
libopenblas.so.0的动态库链接,再import sklearn也可以正常导入了。$ ldd /ifs1/SoftWare/Python-3.10.16/lib/python3.10/site-packages/scipy/linalg/_flapack.cpython-310-x86_64-linux-gnu.so linux-vdso.so.1 => (0x00007fffa04a7000) libopenblas.so.0 => /usr/lib64/libopenblas.so.0 (0x00007f4ae1e79000) libmkl_rt.so => /opt/intel/composer_xe_2011_sp1.6.233/mkl/lib/intel64/libmkl_rt.so (0x00007f4ae190f000) libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f4ae16f2000) libgfortran.so.3 => /usr/lib64/libgfortran.so.3 (0x00007f4ae1400000) libm.so.6 => /lib64/libm.so.6 (0x00007f4ae117b000) libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007f4ae0f65000) libc.so.6 => /lib64/libc.so.6 (0x00007f4ae0bd1000) /lib64/ld-linux-x86-64.so.2 (0x0000003636a00000) libdl.so.2 => /lib64/libdl.so.2 (0x00007f4ae09cc000)参考资料
All reactions