我尝试在Python 3.6(Windows 10(中安装MKL(Blas(,并想检查是否正确安装了它。当我编写numpy.show_config((时,我会在下面获取以下消息。我的numpy现在使用mkl(blas(库吗?
blas_mkl_info:
libraries = ['mkl_lapack95_lp64', 'mkl_blas95_lp64', 'mkl_rt']
library_dirs = ['C:/Program Files (x86)/IntelSWTools/compilers_and_libraries_2019/windows/mkl/lib/intel64_win']
define_macros = [('SCIPY_MKL_H', None), ('HAVE_CBLAS', None)]
include_dirs = ['C:/Program Files (x86)/IntelSWTools/compilers_and_libraries_2019/windows/mkl/include']
blas_opt_info:
libraries = ['mkl_lapack95_lp64', 'mkl_blas95_lp64', 'mkl_rt']
library_dirs = ['C:/Program Files (x86)/IntelSWTools/compilers_and_libraries_2019/windows/mkl/lib/intel64_win']
define_macros = [('SCIPY_MKL_H', None), ('HAVE_CBLAS', None)]
include_dirs = ['C:/Program Files (x86)/IntelSWTools/compilers_and_libraries_2019/windows/mkl/include']
lapack_mkl_info:
libraries = ['mkl_lapack95_lp64', 'mkl_blas95_lp64', 'mkl_rt']
library_dirs = ['C:/Program Files (x86)/IntelSWTools/compilers_and_libraries_2019/windows/mkl/lib/intel64_win']
define_macros = [('SCIPY_MKL_H', None), ('HAVE_CBLAS', None)]
include_dirs = ['C:/Program Files (x86)/IntelSWTools/compilers_and_libraries_2019/windows/mkl/include']
lapack_opt_info:
libraries = ['mkl_lapack95_lp64', 'mkl_blas95_lp64', 'mkl_rt']
library_dirs = ['C:/Program Files (x86)/IntelSWTools/compilers_and_libraries_2019/windows/mkl/lib/intel64_win']
define_macros = [('SCIPY_MKL_H', None), ('HAVE_CBLAS', None)]
include_dirs = ['C:/Program Files (x86)/IntelSWTools/compilers_and_libraries_2019/windows/mkl/include']
Thanks
如果您的意思是'检查是否已安装',请尝试:
try:
import module
except ImportError, e:
print('ERROR') #module doesn't exist
您可以检查软件包MKL是否安装了PIP冻结。这将列出Python当前安装上安装的所有软件包。