Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Errors installing mysql-python on Azure

Unsure if I should be using Server Overflow or not... Using Django websites on Azure, deploying via GitHub... I have mysql-python in the requirements.txt and even went as far to add the site-packages to my application root... Getting the following error.

error: Microsoft Visual C++ 9.0 is required (Unable to find vcvarsall.bat). Get it from http://aka.ms/vcpython27

like image 976
Luke Griffith Avatar asked Feb 16 '15 00:02

Luke Griffith


People also ask

Does MySQL work with Azure?

You can use either Single Server or Flexible Server to host a MySQL database in Azure. It's a fully managed database as a service offering that can handle mission-critical workloads with predictable performance and dynamic scalability.


1 Answers

I have been able to use the mysql-python binary install (http://www.lfd.uci.edu/~gohlke/pythonlibs/). After running pip install on the mysql .whl file I then copy everything starting with MySQLdb in the name from my default python install (C:\Python27) for me, to the virtualenv that I am using for my project. I hope this might help.

like image 190
drsnark Avatar answered Oct 21 '22 09:10

drsnark