Mysql-python issues with Mac OS 10.12 installation

Source: Internet
Author: User

When setting up the Django environment under Mac, I found an error when installing Mysql-python with PIP:

Environmenterror:mysql_config not Foun


Read the information on the Internet, the solution is as follows:

1, download Mysql-python (on-line Baidu download, I use the 1.2.4)

2, decompression, setup_posix.py in Mysql_config.path changes as follows:

Mysql_config.path = "/usr/local/mysql-5.7.18-macos10.12-x86_64/bin/mysql_config"

3, the site.cfg in the Mysql_config.path before the # removed, and change the content as follows:

Mysql_config =/usr/local/mysql-5.7.18-macos10.12-x86_64/bin/mysql_config

4. Use Python setup.py install in terminal


Note: Mysql-5.7.18-macos10.12-x86_64/bin/mysql_config is the path to install MySQL, please change it as appropriate.


This article is from the "AICCDD" blog, make sure to keep this source http://520ccdd.blog.51cto.com/3926314/1918411

Mysql-python issues with Mac OS 10.12 installation

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.