python 3.6安装numpy报错 error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++

python 3.6 采用 :

pip install numpy

安装失败并且报错:

No module named ‘numpy.distutils._msvccompiler’ in numpy.distutils; trying from distutils customize MSVCCompiler
libraries satlas not found in [‘d:\myproject\venv\lib’, ‘C:\’]
NOT AVAILABLE

atlas_blas_threads_info: Setting PTATLAS=ATLAS No module named ‘numpy.distutils._msvccompiler’ in numpy.distutils; trying from
distutils customize MSVCCompiler
libraries ptf77blas,ptcblas,atlas not found in [‘d:\myproject\venv\lib’, ‘C:\’]
NOT AVAILABLE

atlas_blas_info: No module named ‘numpy.distutils._msvccompiler’ in numpy.distutils; trying from distutils customize MSVCCompiler
libraries f77blas,cblas,atlas not found in [‘d:\myproject\venv\lib’, ‘C:\’]
NOT AVAILABLE

C:\Users\dcp\AppData\Local\Temp\pip-build-_69grxl2\numpy\numpy\distutils\system_info.py:624:
UserWarning:
Atlas (http://math-atlas.sourceforge.net/) libraries not found.
Directories to search for the libraries can be specified in the
numpy/distutils/site.cfg file (section [atlas]) or by setting
the ATLAS environment variable.
self.calc_info() blas_info: No module named ‘numpy.distutils._msvccompiler’ in numpy.distutils; trying from
distutils customize MSVCCompiler
libraries blas not found in [‘d:\myproject\venv\lib’, ‘C:\’]
NOT AVAILABLE

C:\Users\dcp\AppData\Local\Temp\pip-build-_69grxl2\numpy\numpy\distutils\system_info.py:624:
UserWarning:
Blas (http://www.netlib.org/blas/) libraries not found.
Directories to search for the libraries can be specified in the
numpy/distutils/site.cfg file (section [blas]) or by setting
the BLAS environment variable.
self.calc_info() blas_src_info:
NOT AVAILABLE

C:\Users\dcp\AppData\Local\Temp\pip-build-_69grxl2\numpy\numpy\distutils\system_info.py:624:
UserWarning:
Blas (http://www.netlib.org/blas/) sources not found.
Directories to search for the sources can be specified in the
numpy/distutils/site.cfg file (section [blas_src]) or by setting
the BLAS_SRC environment variable.
self.calc_info()
NOT AVAILABLE

non-existing path in ‘numpy\distutils’: ‘site.cfg’ F2PY Version 2
lapack_opt_info: lapack_mkl_info: No module named
‘numpy.distutils._msvccompiler’ in numpy.distutils; trying from
distutils customize MSVCCompiler
libraries mkl_rt not found in [‘d:\myproject\venv\lib’, ‘C:\’]
NOT AVAILABLE

openblas_lapack_info: No module named
‘numpy.distutils._msvccompiler’ in numpy.distutils; trying from
distutils customize MSVCCompiler No module named
‘numpy.distutils._msvccompiler’ in numpy.distutils; trying from
distutils customize MSVCCompiler
libraries openblas not found in [‘d:\myproject\venv\lib’, ‘C:\’]
NOT AVAILABLE

openblas_clapack_info: No module named
‘numpy.distutils._msvccompiler’ in numpy.distutils; trying from
distutils customize MSVCCompiler No module named
‘numpy.distutils._msvccompiler’ in numpy.distutils; trying from
distutils customize MSVCCompiler
libraries openblas,lapack not found in [‘d:\myproject\venv\lib’, ‘C:\’]
NOT AVAILABLE

atlas_3_10_threads_info: Setting PTATLAS=ATLAS No module named
‘numpy.distutils._msvccompiler’ in numpy.distutils; trying from
distutils customize MSVCCompiler
libraries tatlas,tatlas not found in d:\myproject\venv\lib No module named ‘numpy.distutils._msvccompiler’ in numpy.distutils;
trying from distutils customize MSVCCompiler
libraries lapack_atlas not found in d:\myproject\venv\lib No module named ‘numpy.distutils._msvccompiler’ in numpy.distutils;
trying from distutils customize MSVCCompiler
libraries tatlas,tatlas not found in C:\ No module named ‘numpy.distutils._msvccompiler’ in numpy.distutils; trying from
distutils customize MSVCCompiler
libraries lapack_atlas not found in C:\

解决办法

去第三方库官网下载对应版本numpy包python 3.6安装numpy报错 error: Microsoft Visual C++ 14.0 is required. Get it with

通过cd 切换到本地库安装文件夹

这里写图片描述

然后通过

pip install numpy-1.14.0+mkl-cp37-cp37m-win_amd64.whl

安装模块即可解决报错问题

你可能感兴趣的:(技术之路)