Fresh python 3.7 / django 2.2.1 installation not recognising that mysqlclient is installed

前端 未结 3 399
花落未央
花落未央 2021-01-14 18:39

I have a brand new django 2.2.1 project I have just installed into a python 3.7 virtualenv on OS X (10.14.4). After some frustrations I got mysqlclient to install but when I

3条回答
  •  余生分开走
    2021-01-14 18:45

    If you're on macos do this

    $ brew uninstall mysql
    $ brew install mysql-connector-c
    $ brew unlink mysql-connector-c
    $ brew install mysql
    $ pip install mysql-python
    

    and follow the instructions here: https://pypi.org/project/mysqlclient/

提交回复
热议问题