2

I am trying to make my first sample app with Django and I am trying to install mysql-python using pip install mysql-python and I am getting this error:

It's asking me to install Microsoft Visual C++ 10.0 if I am not wrong. But, from what I have seen on the internet, to install Microsoft Visual C++ I have to install Microsoft Visual Studio(if I am not wrong).

So, My question is is there any other way to install Visual C++. Or is there any other way to install mysql for python.

8
  • So you want to install Visual C++ but you don't want to install Visual C++? Eh. Commented Aug 24, 2015 at 19:17
  • I don't want to install Visual Studio, I wan't to know if there is any other way around this problem?? Commented Aug 24, 2015 at 19:18
  • which python version are you using ? Commented Aug 24, 2015 at 19:22
  • @MuhammadShoaib I am using Python 3.4 Commented Aug 24, 2015 at 19:26
  • Try installing mysql connector before pip install mysql-python. I have shared the link dev.mysql.com/downloads/connector/c/6.0.html#downloads Commented Aug 24, 2015 at 19:28

1 Answer 1

2

You do not need Visual C++ to install mysql-python, but you do need a compiler to build mysql-python, which is what you are trying to do.

The helpful people who wrote the build script have seen fit to require a specific compiler; in this case, it's Visual C++ 10.0. And, yes, that is part of the Visual Studio product.

Find a pre-built version of mysql-python instead. You don't need to build your own copy.

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

4 Comments

I came across this site pypi.python.org/pypi/MySQL-python/1.2.5#downloads to download mysql-python. But it doesn't support Python 3. Since I am new to Python, I don't know what is the difference between Python 2.7 and 3.X. Should I go back to Python 2.7 for this?
@ParthapratimNeog: If you want to use MySQL-Python, and MySQL-Python only supports Python 2.7, then um I'd say yes you should use Python 2.7...
Can you tell me if there are any other ways to use mysql database using drivers other than mysql-python?
@ParthapratimNeog: I'm sure there are. Have a search.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.