0

I'm using Django 1.8 with Python 3.4 in a virtualenv on Windows Vista, and I'm trying to connect a MySQL database to my project. However I realized that I need to have MySQL-python installed to do that.

So I tried to install MySQL-python from command prompt with this pip command:

pip install MySQL-python

And I got an error message saying:

error: Microsoft Visual C++ 10.0 is required (Unable to find vcvarsall.bat).

I went to download Microsoft Visual C++ 2010 but it said I had a more recent version installed already (I think I installed Visual 2013 some time ago).

I don't understand why it wouldn't work with a more recent version of Visual C++, and I can't find any answers anywhere.

If someone could help me resolve this issue that would be great.

Thanks.

6
  • I think this can help you stackoverflow.com/a/12993845/3945375 Commented Jul 14, 2015 at 22:47
  • @Gocht this is for Linux :/ Commented Jul 14, 2015 at 22:49
  • I remember having this issue a lot on Windows. WinPython comes with many useful tools pre-installed, including SQL connectors. winpython.sourceforge.net Commented Jul 14, 2015 at 22:55
  • Or you can use wheel packages for windows from here lfd.uci.edu/~gohlke/pythonlibs/#mysqlclient Commented Jul 14, 2015 at 23:03
  • @Dawid are the wheel packages better to use than the source code version? Commented Jul 16, 2015 at 22:09

1 Answer 1

3

Your best bet is to look at the open issues on Github for this project. In particular take a look at issue 98:

mysqlclient is the de-facto successor of MySQL-python.

https://pypi.python.org/pypi/mysqlclient

It appears that mysql-python is no longer maintained and is a legacy version, as the Github project page states.

Good luck.

Sign up to request clarification or add additional context in comments.

1 Comment

thanks, I tried that but it still won't work. I'm not sure if I downloaded it properly. I downloaded the source code version (.tar) to my virtualenv, and unpacked it. Still get the same error.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.