Mac install MySQL-Python error

Execute the command: sudo pip install MySQL-Python always being given; as follows

Internet to find a lot of ways, also tried, probably does not match with my error, it failed to solve

  1.  Execute: export PATH = $ PATH: / usr / local / mysql / bin, and then download the mysql-python

Finally found a solution:

Downloaded directly to the bag, and according to the modified configuration file to do with

Links: https://files.pythonhosted.org/packages/a5/e9/51b544da85a36a68debe7a7091f068d802fc515a3a202652828c73453cad/MySQL-python-1.2.5.zip  (according to their needs to find the corresponding version)

Then modify the file: site.cfg as follows:

Notes to open the red box, and then modified to:  the mysql_config = / usr / local / MySQL / bin / the mysql_config

Released nine original articles · won praise 4 · views 10000 +

Guess you like

Origin blog.csdn.net/CN_DS/article/details/85232204