cpeters5
asked on
MySQL-python installation error
I am ready to install Django. MY-SQL-Python is a prerequisit for mySQL connection to Python. I ran
and ran into the following error (in fact there were other errors before this last one, but found that the version of MS Visual C++ was not compatible with Python. Problem was corrected after installing MS Visual C++ 10)
Attached is the pip.log. What should I do to fix this error?
pip.log
pip install mysql-python
and ran into the following error (in fact there were other errors before this last one, but found that the version of MS Visual C++ was not compatible with Python. Problem was corrected after installing MS Visual C++ 10)
Attached is the pip.log. What should I do to fix this error?
pip.log
MySQL-python doesn't have a python 3 version available. So don't think you are going to be able to get it installed under python 3 which appears to be what you are running.
ASKER
clockwatcher,
Yes, I am using python 3.3. What are other choices for mysql-python subsitute?
Yes, I am using python 3.3. What are other choices for mysql-python subsitute?
I don't use django but a quick google and it appears that the mysql-connector (http://dev.mysql.com/downloads/connector/python/) which does have a python 3 version available will work with it:
http://saltnlight5.blogspot.com/2014/09/django-with-python-3-and-mysql-database.html
http://saltnlight5.blogspot.com/2014/09/django-with-python-3-and-mysql-database.html
ASKER
Thanks clockwatcher. That is the same version I used in the installation. I saw that it supported python v.3. But thought there might be some undocumented problem.
ASKER
clockwatcher and all,
What DBI and web modules do you prefer for web-based/database application development in Python?
What DBI and web modules do you prefer for web-based/database application development in Python?
I prefer pyramid (http://www.pylonsproject.org/) for web development and SQLAlchemy (http://www.sqlalchemy.org/) for relational databases.
But we should be able to get django and the mysql-connector working. I'll do a quick python 3.3 install later this morning and see how it goes.
But we should be able to get django and the mysql-connector working. I'll do a quick python 3.3 install later this morning and see how it goes.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
clockwatcher,
Thank you for the clear instruction. I was out of the loop for a few days. Just tried your approach and able to install django in virtual env without error! I will close this question but will continue to post new questions as I learn the art of web dev in python!
pax
Thank you for the clear instruction. I was out of the loop for a few days. Just tried your approach and able to install django in virtual env without error! I will close this question but will continue to post new questions as I learn the art of web dev in python!
pax