G
G
Grigory Dudnikov2016-04-07 05:19:45
MySQL
Grigory Dudnikov, 2016-04-07 05:19:45

How to connect to MySQL in Python3 on mac?

Hello!
Recently, I have been writing in Python 3.+ under Mac OS X. There was a need to read data from the MySQL database. I found the MySQLdb
driver , but I can't install it on an OS X machine (the script should work under Ubuntu, but I'm writing it from a Mac). The search did not clarify the situation much - I found only a few solutions for installing or building under Ubuntu / Debian. Tell me - did I do the right thing by choosing this driver at all, or are there more popular ways to work with MySQL in Python 3? And how to run it on os x?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
AmikoYuki, 2016-04-07
@1win1

pip install mysqlclient
Anyway: stackoverflow.com/questions/4960048/python-3-and-mysql

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question