Windows下使用pip install 出现 error: Microsoft Visual C++ 10.0 is required (Unable to find vcvarsall.bat).
解决方法:
  升级pip

1
python -m pip install -U pip

  更改C:\Python34\Lib\distutils下的msvc9compiler.py文件
  重写find_vcvarsall方法:

1
2
3
4
5
6
7
def find_vcvarsall(version):
productdir = 'C:\\Program Files (x86)\\Microsoft Visual Studio 12.0\\VC\\vcvarsall.bat'
vcvarsall = os.path.join(productdir)
if os.path.isfile(vcvarsall):
return vcvarsall
else:
return None