I am trying to run a Python Django project as required version of 2.7 of Python, Django of 1.8 and MySQL 5.7. While installing the MySQL-python of 1.2.5, building the wheel it's breaking and getting the below error:
Building wheel for MySQL-python (setup.py) ... error
ERROR: Command errored out with exit status 1:
error: command 'cc' failed with exit status 1
I link the mysql@5.7, so when I check which mysql_config
I am getting /usr/local/opt/mysql@5.7/bin/mysql_config
.
I have tried most of the solutions, I have installed MySQL through brew.
I tried installing mysqlclient in virtual env before Django gets installed, but when I tried installing mysqlclient in venv I am getting the same error.
Building wheel for mysqlclient (setup.py) ... error
ERROR: Command errored out with exit status 1:
error: command 'cc' failed with exit status 1
I am not able to figure what the issue is, since I am new to Python.