error: Unable to find vcvarsall.bat on python 3.5
赢得10 64位,python 3.5
当我尝试安装numpy或任何其他带有pip的包时,会出现以下错误:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 | C:\Users\MyUser>pip install numpy Collecting numpy Using cached numpy-1.10.1.tar.gz Installing collected packages: numpy Running setup.py install for numpy Complete output from command c:\users\MyUser\appdata\local\programs\python\python35\python.exe -c"import setuptools, tokenize;__file__='C:\\Users\\MyUser\\AppData\\Local\\Temp\\pip-build-senpk_d1\ umpy\\setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace(' ', ' '), __file__, 'exec'))" install --record C:\Users\MyUser\AppData\Local\Temp\pip-atf01b48-record\install-record.txt --single-version-externally-managed --compile: blas_opt_info: blas_mkl_info: libraries mkl,vml,guide not found in ['c:\\users\\MyUser\\appdata\\local\\programs\\python\\python35\\lib', 'C:\', 'c:\\users\\MyUser\\appdata\\local\\programs\\python\\python35\\libs'] NOT AVAILABLE openblas_info: libraries openblas not found in ['c:\\users\\MyUser\\appdata\\local\\programs\\python\\python35\\lib', 'C:\', 'c:\\users\\MyUser\\appdata\\local\\programs\\python\\python35\\libs'] NOT AVAILABLE atlas_3_10_blas_threads_info: Setting PTATLAS=ATLAS libraries tatlas not found in ['c:\\users\\MyUser\\appdata\\local\\programs\\python\\python35\\lib', 'C:\', 'c:\\users\\MyUser\\appdata\\local\\programs\\python\\python35\\libs'] NOT AVAILABLE atlas_3_10_blas_info: libraries satlas not found in ['c:\\users\\MyUser\\appdata\\local\\programs\\python\\python35\\lib', 'C:\', 'c:\\users\\MyUser\\appdata\\local\\programs\\python\\python35\\libs'] NOT AVAILABLE atlas_blas_threads_info: Setting PTATLAS=ATLAS libraries ptf77blas,ptcblas,atlas not found in ['c:\\users\\MyUser\\appdata\\local\\programs\\python\\python35\\lib', 'C:\', 'c:\\users\\MyUser\\appdata\\local\\programs\\python\\python35\\libs'] NOT AVAILABLE atlas_blas_info: libraries f77blas,cblas,atlas not found in ['c:\\users\\MyUser\\appdata\\local\\programs\\python\\python35\\lib', 'C:\', 'c:\\users\\MyUser\\appdata\\local\\programs\\python\\python35\\libs'] NOT AVAILABLE blas_info: libraries blas not found in ['c:\\users\\MyUser\\appdata\\local\\programs\\python\\python35\\lib', 'C:\', 'c:\\users\\MyUser\\appdata\\local\\programs\\python\\python35\\libs'] NOT AVAILABLE blas_src_info: NOT AVAILABLE NOT AVAILABLE non-existing path in 'numpy\\distutils': 'site.cfg' F2PY Version 2 lapack_opt_info: openblas_lapack_info: libraries openblas not found in ['c:\\users\\MyUser\\appdata\\local\\programs\\python\\python35\\lib', 'C:\', 'c:\\users\\MyUser\\appdata\\local\\programs\\python\\python35\\libs'] NOT AVAILABLE lapack_mkl_info: mkl_info: libraries mkl,vml,guide not found in ['c:\\users\\MyUser\\appdata\\local\\programs\\python\\python35\\lib', 'C:\', 'c:\\users\\MyUser\\appdata\\local\\programs\\python\\python35\\libs'] NOT AVAILABLE NOT AVAILABLE atlas_3_10_threads_info: Setting PTATLAS=ATLAS libraries tatlas,tatlas not found in c:\users\MyUser\appdata\local\programs\python\python35\lib libraries lapack_atlas not found in c:\users\MyUser\appdata\local\programs\python\python35\lib libraries tatlas,tatlas not found in C:\ libraries lapack_atlas not found in C:\ libraries tatlas,tatlas not found in c:\users\MyUser\appdata\local\programs\python\python35\libs libraries lapack_atlas not found in c:\users\MyUser\appdata\local\programs\python\python35\libs <class 'numpy.distutils.system_info.atlas_3_10_threads_info'> NOT AVAILABLE atlas_3_10_info: libraries satlas,satlas not found in c:\users\MyUser\appdata\local\programs\python\python35\lib libraries lapack_atlas not found in c:\users\MyUser\appdata\local\programs\python\python35\lib libraries satlas,satlas not found in C:\ libraries lapack_atlas not found in C:\ libraries satlas,satlas not found in c:\users\MyUser\appdata\local\programs\python\python35\libs libraries lapack_atlas not found in c:\users\MyUser\appdata\local\programs\python\python35\libs <class 'numpy.distutils.system_info.atlas_3_10_info'> NOT AVAILABLE atlas_threads_info: Setting PTATLAS=ATLAS libraries ptf77blas,ptcblas,atlas not found in c:\users\MyUser\appdata\local\programs\python\python35\lib libraries lapack_atlas not found in c:\users\MyUser\appdata\local\programs\python\python35\lib libraries ptf77blas,ptcblas,atlas not found in C:\ libraries lapack_atlas not found in C:\ libraries ptf77blas,ptcblas,atlas not found in c:\users\MyUser\appdata\local\programs\python\python35\libs libraries lapack_atlas not found in c:\users\MyUser\appdata\local\programs\python\python35\libs <class 'numpy.distutils.system_info.atlas_threads_info'> NOT AVAILABLE atlas_info: libraries f77blas,cblas,atlas not found in c:\users\MyUser\appdata\local\programs\python\python35\lib libraries lapack_atlas not found in c:\users\MyUser\appdata\local\programs\python\python35\lib libraries f77blas,cblas,atlas not found in C:\ libraries lapack_atlas not found in C:\ libraries f77blas,cblas,atlas not found in c:\users\MyUser\appdata\local\programs\python\python35\libs libraries lapack_atlas not found in c:\users\MyUser\appdata\local\programs\python\python35\libs <class 'numpy.distutils.system_info.atlas_info'> NOT AVAILABLE lapack_info: libraries lapack not found in ['c:\\users\\MyUser\\appdata\\local\\programs\\python\\python35\\lib', 'C:\', 'c:\\users\\MyUser\\appdata\\local\\programs\\python\\python35\\libs'] NOT AVAILABLE lapack_src_info: NOT AVAILABLE NOT AVAILABLE running install running build running config_cc unifing config_cc, config, build_clib, build_ext, build commands --compiler options running config_fc unifing config_fc, config, build_clib, build_ext, build commands --fcompiler options running build_src build_src building py_modules sources creating build creating build\src.win-amd64-3.5 creating build\src.win-amd64-3.5 umpy creating build\src.win-amd64-3.5 umpy\distutils building library"npymath" sources No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils Running from numpy source directory. C:\Users\MyUser\AppData\Local\Temp\pip-build-senpk_d1 umpy umpy\distutils\system_info.py:1651: 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. warnings.warn(AtlasNotFoundError.__doc__) C:\Users\MyUser\AppData\Local\Temp\pip-build-senpk_d1 umpy umpy\distutils\system_info.py:1660: 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. warnings.warn(BlasNotFoundError.__doc__) C:\Users\MyUser\AppData\Local\Temp\pip-build-senpk_d1 umpy umpy\distutils\system_info.py:1663: 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. warnings.warn(BlasSrcNotFoundError.__doc__) C:\Users\MyUser\AppData\Local\Temp\pip-build-senpk_d1 umpy umpy\distutils\system_info.py:1552: 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. warnings.warn(AtlasNotFoundError.__doc__) C:\Users\MyUser\AppData\Local\Temp\pip-build-senpk_d1 umpy umpy\distutils\system_info.py:1563: UserWarning: Lapack (http://www.netlib.org/lapack/) libraries not found. Directories to search for the libraries can be specified in the numpy/distutils/site.cfg file (section [lapack]) or by setting the LAPACK environment variable. warnings.warn(LapackNotFoundError.__doc__) C:\Users\MyUser\AppData\Local\Temp\pip-build-senpk_d1 umpy umpy\distutils\system_info.py:1566: UserWarning: Lapack (http://www.netlib.org/lapack/) sources not found. Directories to search for the sources can be specified in the numpy/distutils/site.cfg file (section [lapack_src]) or by setting the LAPACK_SRC environment variable. warnings.warn(LapackSrcNotFoundError.__doc__) c:\users\MyUser\appdata\local\programs\python\python35\lib\distutils\dist.py:261: UserWarning: Unknown distribution option: 'define_macros' warnings.warn(msg) error: Unable to find vcvarsall.bat ---------------------------------------- Command"c:\users\MyUser\appdata\local\programs\python\python35\python.exe -c"import setuptools, tokenize;__file__='C:\\Users\\MyUser\\AppData\\Local\\Temp\\pip-build-senpk_d1\ umpy\\setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace(' ', ' '), __file__, 'exec'))" install --record C:\Users\MyUser\AppData\Local\Temp\pip-atf01b48-record\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\MyUser\AppData\Local\Temp\pip-build-senpk_d1 umpy |
我做了这个链接里说的,但没有帮助
错误:找不到vcvarsall.bat
在Windows7 64位上运行"pip install numpy"时,获取"错误:找不到vcvarsall.bat"
PIP安装出错:找不到vcvarsall.bat
python pip安装错误:找不到vcvarsall.bat。尝试了所有解决方案
你有两个主要的选择-
- 使用一个像"Python"这样的发行版,其中包含预先构建的科学软件包版本。
- 从Christoph Gohlke的网站下载预建安装程序。例如,这里是麻木的。
确保为您的python安装下载了正确的版本。如果在Windows上从命令行运行python,它应该显示如下内容-
1 | Python 2.7.2 (default, Jun 12 2011, 14:24:46) [MSC v.1500 64 bit (AMD64)] on win32 |
…对于这个安装,正确的文件应该是