尝试通过 pip 安装 MySQL-python 时找不到 Visual C++ 2010 Redistributable

Visual C++ 2010 Redistributable not found when attempting to install MySQL-python via pip

我有 Microsoft Visual C++ 2010 x(86|64) Redistributable - 10.0.40219 但是当我试图通过 Visual Studio 2015 社区安装 Pip 包 MySQL-python 时,我想出了错误 error: Microsoft Visual C++ 10.0 is required (Unable to find vcvarsall.bat). 我是缺少什么?

我会说你没有为 vc 设置适当的路径变量,所以你的 python 正在尝试调用 vcvarsall.bat,但找不到这样的动物。看看 Cannot find vcvarsall.bat when running a Python script 这个完全相同的问题(和一些答案)。