Under the Windows platform, the following error may occur when Python is installed in the following ways:
[Python]View PlainCopy
- > Python setup.py Install
-
- 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
- C:\users\huangzc>python
- Python 3.4.4 (V3.4.4:737efcadf5a6, Dec, 20:20:57) [MSC v.1600-bit (AMD64)] on Win32
- Type "Help", "copyright", "credits" or "license" for more information.
- >>>
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
- 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
- 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)