Python Microsoft Visual C + + 10.0 is required (unable to find Vcvarsall.bat)

Source: Internet
Author: User



Under the Windows platform, the following error may occur when Python is installed in the following ways:


[Python]View PlainCopy
    1. > Python setup.py Install
    2. Error:microsoft Visual C + + 10.0 is required (unable to find Vcvarsall.bat).



Cause: Different versions of Python require the same Visual C + + table.



Such as:


[Plain]View PlainCopy


Python 3.4 uses MSC v.1600 (requires Visual Studio C ++ 2010)
Python 2.7 using MSC v.1500 (requires Visual Studio C ++ 2008)
  
#For this version of Visual C ++ Use this compiler version
Visual C ++ 4.x MSC_VER = 1000
Visual C ++ 5 MSC_VER = 1100
Visual C ++ 6 MSC_VER = 1200
Visual C ++ .NET MSC_VER = 1300
Visual C ++ .NET 2003 MSC_VER = 1310
Visual C ++ 2005 (8.0) MSC_VER = 1400
Visual C ++ 2008 (9.0) MSC_VER = 1500
Visual C ++ 2010 (10.0) MSC_VER = 1600
Visual C ++ 2012 (11.0) MSC_VER = 1700
Visual C ++ 2013 (12.0) MSC_VER = 1800
Visual C ++ 2015 (14.0) MSC_VER = 1900


As you can see when entering Python, the following (MSC v.1600)


[Plain]View PlainCopy
    1. C:\users\huangzc>python
    2. Python 3.4.4 (V3.4.4:737efcadf5a6, Dec, 20:20:57) [MSC v.1600-bit (AMD64)] on Win32
    3. Type "Help", "copyright", "credits" or "license" for more information.
    4. >>>



The workaround is to download the appropriate installation first: Microsoft Visual C + + redistributable Package






If you do not intend to install a new version of Visual C + +, you can use the WHL file installation.



: Unofficial Windows Binaries for Python Extension Packages



These files are unofficial binary files that support both 32-bit and 64-bit Windows systems.



To determine the Python version before downloading:


[Plain]View PlainCopy
    1. Python-c "Import distutils.util; Print (Distutils.util.get_platform ()) "


After downloading, place the file in the Python\scripts directory, elsewhere, and install it using the PIP tool.


[Plain]View PlainCopy
    1. Pip Install PYMSSQL-2.1.3-CP27-CP27M-WIN_AMD64.WHL



See succesful for successful installation! Python has a version installed with tools Easy_install and Pip.



This article was reproduced in: 54925676



Python Microsoft Visual C + + 10.0 is required (unable to find Vcvarsall.bat)


Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.