码迷,mamicode.com
首页 > 数据库 > 详细

Windows10-python2.7安装MySQLdb报错

时间:2018-03-01 20:03:29      阅读:398      评论:0      收藏:0      [点我收藏+]

标签: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:\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

Windows10-python2.7安装MySQLdb报错

标签:MySQLdb

原文地址:http://blog.51cto.com/luweikai/2074363

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!