Reputation: 479
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
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