1. 程式人生 > >python 3.6安裝numpy報錯 error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++

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包圖

通過cd 切換到本地庫安裝資料夾

這裡寫圖片描述

然後通過

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

安裝模組即可解決報錯問題