Install python_MySQLdb on mac
PHP中文网
PHP中文网 2017-05-24 11:35:24
0
3
733

System: mac OS 10.12.1
python 2.7.10
Using pip and SourceForge to download and install two methods to install python_MySQLdb, both error reports
Error: EnvironmentError: mysql_config not found
Follow http:/ /blog.csdn.net/janroneh... The modification did not solve the problem and still reported the same error

PHP中文网
PHP中文网

认证高级PHP讲师

reply all (3)
漂亮男人

First you need to install the mysql development library file, a package like libmysqld-dev

    習慣沉默

    Use pymysql. I use pymysql on mac. It is easy to install and easy to use.

      洪涛

      brew install mysql
      pip install mysqlclient
      or pip install MySQL-Python
      (Note: mysqlclient is a branch of python mysqldb, already supports python3, and the MySQLdb interface is the same)

        Latest Downloads
        More>
        Web Effects
        Website Source Code
        Website Materials
        Front End Template
        About us Disclaimer Sitemap
        php.cn:Public welfare online PHP training,Help PHP learners grow quickly!