PlanetUnknown
PlanetUnknown

Reputation: 4014

Is there no mysql connector for python 2.7 on windows

While I see a bunch of links/binaries for mysql connector for python 2.6, I don't see one for 2.7

To use django, should I just revert to 2.6 or is there a way out ?

I'm using windows 7 64bit

django - 1.1 Mysql 5.1.50

Any pointers would be great.

Upvotes: 1

Views: 2965

Answers (3)

Ooguro
Ooguro

Reputation: 121

For Python 2.7 on specific programs:

  1. sudo chown -R $USER /Library/Python/2.7
  2. brew install [email protected]
  3. brew install mysql-connector-c
  4. brew link --overwrite [email protected]
  5. echo 'export PATH="/usr/local/opt/[email protected]/bin:$PATH"' >> ~/.bash_profile
  6. sed -i -e 's/libs="$libs -l "/libs="$libs -lmysqlclient -lssl -lcrypto"/g' /usr/local/bin/mysql_config
  7. pip install MySql-python

This solved all issues I was having running a program that ran on Python 2.7 on and older version of MySql

Upvotes: 1

arkoak
arkoak

Reputation: 2497

this installer worked for me : http://www.codegood.com/archives/129

Upvotes: 0

Thorin Schiffer
Thorin Schiffer

Reputation: 2856

Try this one. This guy has done a good job and figured out the localization problem and gives a good link to windows binaries for what are you looking for. I hope it helps someday) Good luck!

Upvotes: 0

Related Questions