Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/292.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
安装MySQL python时出错:找不到vcvarsall.bat_Python_Mysql_Windows - Fatal编程技术网

安装MySQL python时出错:找不到vcvarsall.bat

安装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 -

我试图使用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

----------------------------------------


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++编译器
我已经尝试了Stack Overflow和其他网站中已经存在的所有答案,没有任何帮助

背景:

我正试图在我的笔记本电脑中运行Django服务器,为此我需要mysql python。

(操作系统:Windows 10)

我也有同样的问题。我尝试从头开始安装python,但没有成功。@JithinPavithran我建议你们都安装预编译版本:@Selcuk,它没有成功。@JithinPavithran“它没有成功”是什么意思?你有错误吗?您确定您使用的是唯一受支持的Python版本(2.7)?@是的,预编译库wellI也有同样的问题。我尝试从头开始安装python,但没有成功。@JithinPavithran我建议你们都安装预编译版本:@Selcuk,它没有成功。@JithinPavithran“它没有成功”是什么意思?你有错误吗?您确定您使用的是唯一受支持的Python版本(2.7)?@是的,预编译库做得很好