FallingFromBed FallingFromBed - 1 year ago 212
MySQL Question

Installing MySql for python 3.5.2

I was trying to installed Mysql as i started off with Django, the methods I have followed:

1)pip install MySQL-python

error: Unable to find vcvarsall.bat( Does MSvisual studio needed?,I am not sure whether I have it or not maybe I got MSVS 2005)

2)https://sourceforge.net/projects/mysql-python/( only for 2.7 no package for 3.5)

3)https://dev.mysql.com/downloads/connector/python/ (registry error, it searches for 3.4..)

Can anyone help me with this, I was puzzled I am on windows 7

max max
Answer Source

MySQL-python package is for 2.* version

it's been while but i think still there is no mysql connector for 3.5

your best option is to downgrade to python 3.4 and use mysql cli3ent

pip install mysqlclient

i havn't tested but some say this works for 3.5 but i wouldn't count on it


good luck