哎,我已经崩溃了。不纠结了,死活就是这速度了!
Python 2.7.5 |Anaconda 1.8.0 (64-bit)| (default, Jul 1 2013, 12:37:52) [MSC v.1500 64 bit (AMD64)]
Type "copyright", "credits" or "license" for more information.
IPython 1.1.0 -- An enhanced Interactive Python.
? -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help -> Python's own help system.
object? -> Details about 'object', use 'object??' for extra details.
In [1]: import numpy as np
Vendor: Continuum Analytics, Inc.
Package: mkl
Message: trial mode expires in 30 days
In [2]: np.sho
np.short np.show_config
In [2]: np.show_config()
lapack_opt_info:
libraries = ['mkl_lapack95_lp64', 'mkl_core_dll', 'mkl_intel_lp64_dll', 'mkl_intel_thread_dll']
library_dirs = ['C:\\aroot\\stage\\libs']
define_macros = [('SCIPY_MKL_H', None)]
include_dirs = ['C:\\aroot\\stage\\include']
blas_opt_info:
libraries = ['mkl_core_dll', 'mkl_intel_lp64_dll', 'mkl_intel_thread_dll']
library_dirs = ['C:\\aroot\\stage\\libs']
define_macros = [('SCIPY_MKL_H', None)]
include_dirs = ['C:\\aroot\\stage\\include']
lapack_mkl_info:
libraries = ['mkl_lapack95_lp64', 'mkl_core_dll', 'mkl_intel_lp64_dll', 'mkl_intel_thread_dll']
library_dirs = ['C:\\aroot\\stage\\libs']
define_macros = [('SCIPY_MKL_H', None)]
include_dirs = ['C:\\aroot\\stage\\include']
blas_mkl_info:
libraries = ['mkl_core_dll', 'mkl_intel_lp64_dll', 'mkl_intel_thread_dll']
library_dirs = ['C:\\aroot\\stage\\libs']
define_macros = [('SCIPY_MKL_H', None)]
include_dirs = ['C:\\aroot\\stage\\include']
mkl_info:
libraries = ['mkl_core_dll', 'mkl_intel_lp64_dll', 'mkl_intel_thread_dll']
library_dirs = ['C:\\aroot\\stage\\libs']
define_macros = [('SCIPY_MKL_H', None)]
include_dirs = ['C:\\aroot\\stage\\include']
In [3]: a=np.random.random((10000,10000))
In [4]: %timeit np.dot(a,a)
1 loops, best of 3: 1min 16s per loop
【 在 guzongyuan (guzongyuan) 的大作中提到: 】
: 你最好用学校或者学术邮箱注册弄个带mkl的anaconda python,它还附带了numbapro之类的库。