Help I'm stuck in Django hell! I'm trying to learn Django and I'm trying to set up a test site on my own computer (MacOS 10.12.6). My version of Python is 3.6.2 with Django 1.11.4 and MySQL 5.7.19.
I am at the point where I want to do:
python manage.py migrate
BUT... it doesn't work... I have installed mysql-connector 2.1.6 and that particular version seems to have a bug which is documented here. The error posted looks like mine. MySQL said the bug was fixed in version 2.1.7, but I can't download that with pip and I don't see it anywhere. The only other version higher that pip sees is 2.2.3 and that doesn't install at all.
I found other instructions that suggested using mysqlclient (and here), but even that doesn't work. I get this error...
pip install mysqlclient
Collecting mysqlclient
Using cached mysqlclient-1.3.10.tar.gz
Complete output from command python setup.py egg_info:
/bin/sh: mysql_config: command not found
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/private/var/folders/d9/z3yxpfl505s_jwtty_x3576h0000gn/T/pip-build-8vj20eqa/mysqlclient/setup.py", line 17, in <module>
metadata, options = get_config()
File "/private/var/folders/d9/z3yxpfl505s_jwtty_x3576h0000gn/T/pip-build-8vj20eqa/mysqlclient/setup_posix.py", line 44, in get_config
libs = mysql_config("libs_r")
File "/private/var/folders/d9/z3yxpfl505s_jwtty_x3576h0000gn/T/pip-build-8vj20eqa/mysqlclient/setup_posix.py", line 26, in mysql_config
raise EnvironmentError("%s not found" % (mysql_config.path,))
OSError: mysql_config not found
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/d9/z3yxpfl505s_jwtty_x3576h0000gn/T/pip-build-8vj20eqa/mysqlclient/
I hope someone can help me get past this since I'm definitely stuck at this point. Thank you in advance!
-b