错误:无法在python 3.5上找到vcvarsall.bat

WIN 10 64BIT,PYTHON 3.5

当我尝试安装numpy或任何其他与PIP包升起这个错误:

C:UsersMyUser>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:usersMyUserappdatalocalprogramspythonpython35python.exe -c "import setuptools, tokenize;__file__='C:UsersMyUserAppDataLocalTemppip-build-senpk_d1numpysetup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('rn', 'n'), __file__, 'exec'))" install --record C:UsersMyUserAppDataLocalTemppip-atf01b48-recordinstall-record.txt --single-version-externally-managed --compile:
    blas_opt_info:
    blas_mkl_info:
    libraries mkl,vml,guide not found in ['c:usersMyUserappdatalocalprogramspythonpython35lib', 'C:', 'c:usersMyUserappdatalocalprogramspythonpython35libs']
    NOT AVAILABLE

    openblas_info:
    libraries openblas not found in ['c:usersMyUserappdatalocalprogramspythonpython35lib', 'C:', 'c:usersMyUserappdatalocalprogramspythonpython35libs']
    NOT AVAILABLE

atlas_3_10_blas_threads_info:
Setting PTATLAS=ATLAS
libraries tatlas not found in ['c:usersMyUserappdatalocalprogramspythonpython35lib', 'C:', 'c:usersMyUserappdatalocalprogramspythonpython35libs']
NOT AVAILABLE

atlas_3_10_blas_info:
libraries satlas not found in ['c:usersMyUserappdatalocalprogramspythonpython35lib', 'C:', 'c:usersMyUserappdatalocalprogramspythonpython35libs']
NOT AVAILABLE

atlas_blas_threads_info:
Setting PTATLAS=ATLAS
libraries ptf77blas,ptcblas,atlas not found in ['c:usersMyUserappdatalocalprogramspythonpython35lib', 'C:', 'c:usersMyUserappdatalocalprogramspythonpython35libs']
NOT AVAILABLE

atlas_blas_info:
libraries f77blas,cblas,atlas not found in ['c:usersMyUserappdatalocalprogramspythonpython35lib', 'C:', 'c:usersMyUserappdatalocalprogramspythonpython35libs']
NOT AVAILABLE

blas_info:
libraries blas not found in ['c:usersMyUserappdatalocalprogramspythonpython35lib', 'C:', 'c:usersMyUserappdatalocalprogramspythonpython35libs']
NOT AVAILABLE

blas_src_info:
NOT AVAILABLE

NOT AVAILABLE

non-existing path in 'numpydistutils': 'site.cfg'
F2PY Version 2
lapack_opt_info:
openblas_lapack_info:
libraries openblas not found in ['c:usersMyUserappdatalocalprogramspythonpython35lib', 'C:', 'c:usersMyUserappdatalocalprogramspythonpython35libs']
NOT AVAILABLE

lapack_mkl_info:
mkl_info:
libraries mkl,vml,guide not found in ['c:usersMyUserappdatalocalprogramspythonpython35lib', 'C:', 'c:usersMyUserappdatalocalprogramspythonpython35libs']
NOT AVAILABLE

NOT AVAILABLE

atlas_3_10_threads_info:
Setting PTATLAS=ATLAS
libraries tatlas,tatlas not found in c:usersMyUserappdatalocalprogramspythonpython35lib
libraries lapack_atlas not found in c:usersMyUserappdatalocalprogramspythonpython35lib
libraries tatlas,tatlas not found in C:
libraries lapack_atlas not found in C:
libraries tatlas,tatlas not found in c:usersMyUserappdatalocalprogramspythonpython35libs
libraries lapack_atlas not found in c:usersMyUserappdatalocalprogramspythonpython35libs
<class 'numpy.distutils.system_info.atlas_3_10_threads_info'>
NOT AVAILABLE

atlas_3_10_info:
libraries satlas,satlas not found in c:usersMyUserappdatalocalprogramspythonpython35lib
libraries lapack_atlas not found in c:usersMyUserappdatalocalprogramspythonpython35lib
libraries satlas,satlas not found in C:
libraries lapack_atlas not found in C:
libraries satlas,satlas not found in c:usersMyUserappdatalocalprogramspythonpython35libs
libraries lapack_atlas not found in c:usersMyUserappdatalocalprogramspythonpython35libs
<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:usersMyUserappdatalocalprogramspythonpython35lib
libraries lapack_atlas not found in c:usersMyUserappdatalocalprogramspythonpython35lib
libraries ptf77blas,ptcblas,atlas not found in C:
libraries lapack_atlas not found in C:
libraries ptf77blas,ptcblas,atlas not found in c:usersMyUserappdatalocalprogramspythonpython35libs
libraries lapack_atlas not found in c:usersMyUserappdatalocalprogramspythonpython35libs
<class 'numpy.distutils.system_info.atlas_threads_info'>
NOT AVAILABLE

atlas_info:
libraries f77blas,cblas,atlas not found in c:usersMyUserappdatalocalprogramspythonpython35lib
libraries lapack_atlas not found in c:usersMyUserappdatalocalprogramspythonpython35lib
libraries f77blas,cblas,atlas not found in C:
libraries lapack_atlas not found in C:
libraries f77blas,cblas,atlas not found in c:usersMyUserappdatalocalprogramspythonpython35libs
libraries lapack_atlas not found in c:usersMyUserappdatalocalprogramspythonpython35libs
<class 'numpy.distutils.system_info.atlas_info'>
NOT AVAILABLE

lapack_info:
libraries lapack not found in ['c:usersMyUserappdatalocalprogramspythonpython35lib', 'C:', 'c:usersMyUserappdatalocalprogramspythonpython35libs']
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 buildsrc.win-amd64-3.5
creating buildsrc.win-amd64-3.5numpy
creating buildsrc.win-amd64-3.5numpydistutils
building library "npymath" sources
No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
Running from numpy source directory.
C:UsersMyUserAppDataLocalTemppip-build-senpk_d1numpynumpydistutilssystem_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:UsersMyUserAppDataLocalTemppip-build-senpk_d1numpynumpydistutilssystem_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:UsersMyUserAppDataLocalTemppip-build-senpk_d1numpynumpydistutilssystem_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:UsersMyUserAppDataLocalTemppip-build-senpk_d1numpynumpydistutilssystem_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:UsersMyUserAppDataLocalTemppip-build-senpk_d1numpynumpydistutilssystem_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:UsersMyUserAppDataLocalTemppip-build-senpk_d1numpynumpydistutilssystem_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:usersMyUserappdatalocalprogramspythonpython35libdistutilsdist.py:261: UserWarning: Unknown distribution option: 'define_macros'
warnings.warn(msg)
error: Unable to find vcvarsall.bat

----------------------------------------
Command "c:usersMyUserappdatalocalprogramspythonpython35python.exe -c "import setuptools, tokenize;__file__='C:UsersMyUserAppDataLocalTemppip-build-senpk_d1numpysetup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('rn', 'n'), __file__, 'exec'))" install --record C:UsersMyUserAppDataLocalTemppip-atf01b48-recordinstall-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:UsersMyUserAppDataLocalTemppip-build-senpk_d1numpy

我在这个链接上说的事情,但没有帮助

错误:无法找到vcvarsall.bat

在windows7 64bit上运行“pip install numpy”时出现“error:Unable to find vcvarsall.bat”

pip安装给出错误:无法找到vcvarsall.bat

Python Pip安装错误:无法找到vcvarsall.bat。 试过所有的解决方案


numpy软件包包含需要在使用前编译的代码,而且你的系统没有工作编译器(大多数Windows系统没有)。 您可以设置一个,但安装预编译版本更容易。

你有两个主要选项 -

  • 使用像Anaconda这样的发行版,其中包含预编译的科学软件包版本。
  • 从Christoph Gohlke的网站下载预建安装程序。 例如,这里是numpy。
  • 确保你为你的Python安装下载了正确的版本。 如果你从Windows的命令行运行Python,它应该显示这样的内容 -

    Python 2.7.2 (default, Jun 12 2011, 14:24:46) [MSC v.1500 64 bit (AMD64)] on win32
    

    ...对于这个安装,正确的文件将是numpy-1.10.3+vanilla-cp27-none-win_amd64.whl

    链接地址: http://www.djcxy.com/p/26315.html

    上一篇: error: Unable to find vcvarsall.bat on python 3.5

    下一篇: Python Pip install Error: Unable to find vcvarsall.bat. Tried all solutions