安装MySQL python时出错:找不到vcvarsall.bat
我试图使用pip安装安装MySQL python时出错:找不到vcvarsall.bat,python,mysql,windows,Python,Mysql,Windows,我试图使用pip安装mysql-python 我得到以下错误: error: Unable to find vcvarsall.bat ---------------------------------------- Failed building wheel for mysql-python ... ... running build_ext building '_mysql' extension error: Unable to find vcvarsall.bat -
mysql-python
我得到以下错误:
error: Unable to find vcvarsall.bat
----------------------------------------
Failed building wheel for mysql-python
...
...
running build_ext
building '_mysql' extension
error: Unable to find vcvarsall.bat
----------------------------------------
Command "c:\python27\python.exe -u -c "import setuptools,
tokenize;__file__='c:\\users\\hp\\appdata\\local\\temp\\pip-build-
jy5yhb\\mysql-python\\setup.py';exec(compile(getattr(tokenize, 'open', open)
(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record
c:\users\hp\appdata\local\temp\pip-jditig-record\install-record.txt --single-
version-externally-managed --compile" failed with error code 1 in
c:\users\hp\appdata\local\temp\pip-build-jy5yhb\mysql-python\
背景工作包括:
- 从官方网站()安装MySQL
- 已安装SQLite3
- 安装Visual C++可重新分发2008, 2010, 2013,2015</LI>
- Python(最新) 的安装C++编译器
(操作系统:Windows 10)我也有同样的问题。我尝试从头开始安装python,但没有成功。@JithinPavithran我建议你们都安装预编译版本:@Selcuk,它没有成功。@JithinPavithran“它没有成功”是什么意思?你有错误吗?您确定您使用的是唯一受支持的Python版本(2.7)?@是的,预编译库wellI也有同样的问题。我尝试从头开始安装python,但没有成功。@JithinPavithran我建议你们都安装预编译版本:@Selcuk,它没有成功。@JithinPavithran“它没有成功”是什么意思?你有错误吗?您确定您使用的是唯一受支持的Python版本(2.7)?@是的,预编译库做得很好