When I try to use pip3 install -r requirements.txt now that my virtualenv (and my host Python version) is somehow 3.9 instead of 3.6 as it used to be, installation of mysqlclient=1.4.6 now fails this way:
Complete output (12 lines):
/bin/sh: mysql_config: command not found
/bin/sh: mariadb_config: command not found
/bin/sh: mysql_config: command not found
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/private/var/folders/78/m6t5zwl12lz2l9gjd_44x57w0000gn/T/pip-install-6d8h889b/mysqlclient_646d323b983840789a470475ee860b29/setup.py", line 16, in <module>
metadata, options = get_config()
File "/private/var/folders/78/m6t5zwl12lz2l9gjd_44x57w0000gn/T/pip-install-6d8h889b/mysqlclient_646d323b983840789a470475ee860b29/setup_posix.py", line 61, in get_config
libs = mysql_config("libs")
File "/private/var/folders/78/m6t5zwl12lz2l9gjd_44x57w0000gn/T/pip-install-6d8h889b/mysqlclient_646d323b983840789a470475ee860b29/setup_posix.py", line 29, in mysql_config
raise EnvironmentError("%s not found" % (_mysql_config_path,))
OSError: mysql_config not found
The mysql_config script does exist on this system as: /usr/local/mysql-5.7.16-osx10.11-x86_64/bin/mysql_config but I don't know how it is supposed to be located by the installer. And, I don't know why it's failing now when it didn't fail then. Please advise.