您的位置:首页 > 编程语言 > Python开发

pycharm上安装MySQLdb-Python 报错解决方案

2016-07-12 16:04 579 查看
安装MySQL-python报错比较多,但不关mysql的事

Windows下安装MySQLdb遇到的问题及解决方法

pip install MySQL-python

error: Microsoft Visual C++ 9.0 is required (Unable to find vcvarsall.bat).

Get it from http://aka.ms/vcpython27

按上面提示到http://aka.ms/vcpython27下载安装后执行VCForPython27.msi后仍然报下面的错误:

_mysql.c(42) : fatal error C1083: Cannot open include file: ‘config-win.h’:

No such file or directory

error: command ‘C:\Users\Administrator\AppData\Local\Programs\Common\

Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe’ failed with exit

status 2

解决办法:搜索或者到下面网址下载安装:MySQL-python-1.2.3.win-amd64-py2.7.exe

MySQL-python 1.2.3 for Windows and Python 2.7, 32bit and 64bit versions | codegood

http://www.codegood.com/archives/129
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  windows 解决方案