这篇文章给大家介绍Windows10-python2.7安装MySQLdb报错该怎么办,内容非常详细,感兴趣的小伙伴们可以参考借鉴,希望对大家能有所帮助。

在Windows10系统上,Python2.7安装MySQLdb报错:Microsoft Visual C++ 9.0 is required.......
根据报错的提示解决没用.....

根据网上资料,最终解决:
下载MySQL_python-1.2.5-cp27-none-win_amd64.whl(https://www.lfd.uci.edu/~gohlke/pythonlibs/#mysql-python,然后pip install xxxx.whl安装即可)

D:\01software\Python相关软件>pipinstallMySQL_python-1.2.5-cp27-none-win_amd64.whlYouareusingpipversion7.1.0,howeverversion9.0.1isavailable.Youshouldconsiderupgradingviathe'python-mpipinstall--upgradepip'command.Processingd:\01software\python????\mysql_python-1.2.5-cp27-none-win_amd64.whlInstallingcollectedpackages:MySQL-pythonSuccessfullyinstalledMySQL-python-1.2.5D:\01software\Python相关软件>pythonPython2.7.10(default,May232015,09:44:00)[MSCv.150064bit(AMD64)]onwin32Type"help","copyright","credits"or"license"formoreinformation.>>>importMySQLdb>>>exitUseexit()orCtrl-ZplusReturntoexit>>>^Z

关于Windows10-python2.7安装MySQLdb报错该怎么办就分享到这里了,希望以上内容可以对大家有一定的帮助,可以学到更多知识。如果觉得文章不错,可以把它分享出去让更多的人看到。