Skip to content Skip to sidebar Skip to footer

Unable To Install Mysqlclient Using Pip3 On Macos Sierra

I want to use mysql in django so, trying to download mysqlclent using $ pip3 install mysqlclient but always this error comes up Command 'python setup.py egg_info' failed with error

Solution 1:

$ pip3 install mysqlclient

indicates that you are intending to use Python3 install the package. Based on the errors in the description, I believe that MySQL maybe missing from your machine. According to mysqlclient repo, MySQLConnectorC is one of the prerequisite to run mysqlclient on OSX.

brew install mysql-connector-c

should solve your issue.

Solution 2:

Try adding MySQL to your PATH :

export PATH=${PATH}:/usr/local/mysql/bin/

Post a Comment for "Unable To Install Mysqlclient Using Pip3 On Macos Sierra"