这篇文章给大家介绍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:\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报错该怎么办就分享到这里了,希望以上内容可以对大家有一定的帮助,可以学到更多知识。如果觉得文章不错,可以把它分享出去让更多的人看到。
免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。