Install mysqlclient for Django Python on Mac OS X Sierra

前端 未结 6 2290
小蘑菇
小蘑菇 2020-12-02 23:55

I have already installed

  • Python 2.7.13
  • Django 1.11
  • MySQL 5.7.17

I want use MySQL with Django, but after install mysql connect

6条回答
  •  北荒
    北荒 (楼主)
    2020-12-03 00:05

    I have encountered this problem too,below is my step:

    1.brew install mysql-connector-c

    2.pip install mysqlclient

    and then encountered this error,i have Traced the source code,but solved this one then the other error occured.

    so i changed the way to install mysqlclient,just :

    1.brew install mysql

    2.pip install mysqlclient

    this worked for me,no any errors occured.

提交回复
热议问题