使用以下链接尝试使用Openblas设置numpy
Compiling numpy with OpenBLAS integration
Numpy config shows as follows
import numpy as np;
np.config.show()
blas_mkl_info:
NOT AVAILABLE
blis_info:
NOT AVAILABLE
openblas_info:
libraries = ['openblas', 'openblas']
library_dirs = ['/usr/local/lib']
language = c
define_macros = [('HAVE_CBLAS', None)]
blas_opt_info:
libraries = ['openblas', 'openblas']
library_dirs = ['/usr/local/lib']
language = c
define_macros = [('HAVE_CBLAS', None)]
lapack_mkl_info:
NOT AVAILABLE
openblas_lapack_info:
libraries = ['openblas', 'openblas']
library_dirs = ['/usr/local/lib']
language = c
define_macros = [('HAVE_CBLAS', None)]
lapack_opt_info:
libraries = ['openblas', 'openblas']
library_dirs = ['/usr/local/lib']
language = c
define_macros = [('HAVE_CBLAS', None)]
我已将site.cfg和.numpy-site.cfg中的library_dirs路径更新为/ opt / OpenBlas / lib ...
但是library_dirs没有指向/ opt / OpenBlas / lib ...如何解决这个问题?
预先感谢