继续浏览精彩内容
慕课网APP
程序员的梦工厂
打开
继续
感谢您的支持,我会继续努力的
赞赏金额会直接到老师账户
将二维码发送给自己后长按识别
微信支付
支付宝支付

Windows10-python2.7安装MySQLdb报错

android也疯狂
关注TA
已关注
手记 279
粉丝 39
获赞 245

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

根据网上资料,最终解决:

D:\01 software\Python相关软件>pip install MySQL_python-1.2.5-cp27-none-win_amd64.whl

You are using pip version 7.1.0, however version 9.0.1 is available.

You should consider upgrading via the 'python -m pip install --upgrade pip' command.

Processing d:\01 software\python????\mysql_python-1.2.5-cp27-none-win_amd64.whl

Installing collected packages: MySQL-python

Successfully installed MySQL-python-1.2.5


D:\01 software\Python相关软件>python

Python 2.7.10 (default, May 23 2015, 09:44:00) [MSC v.1500 64 bit (AMD64)] on win32

Type "help", "copyright", "credits" or "license" for more information.

>>> import MySQLdb

>>> exit

Use exit() or Ctrl-Z plus Return to exit

>>> ^Z

打开App,阅读手记
0人推荐
发表评论
随时随地看视频慕课网APP