Jonathan Cheng
Jonathan Cheng

Reputation: 479

Can not install MySQL-python(windows)

In windows10

I tried pip and easy_instal both failed to install MySQL-python

But show up the following errows:

c:\users\user\anaconda3\include\pyconfig.h(243): fatal error


C1083: can not open the file: 'basetsd.h': No such file or directory
error: Setup script exited with error: command 

'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\BIN\\x86_amd64\\cl.exe' failed with exit status 2

How to fix it?

Upvotes: 0

Views: 890

Answers (1)

hongjian wang
hongjian wang

Reputation: 21

if you use python 3.+, then unfortunately it has been deprecated the mysql-python module, but alternatively, you can use another module named "pymysql". In pymysql module, you can use it by the following method:

import pymysql as MySQLdb

Upvotes: 2

Related Questions