/bin/sh: mysql_config: not found while making docker image in django app

Collecting mysqlclient==2.1.1 Downloading mysqlclient-2.1.1.tar.gz (88 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 88.1/88.1 kB 6.3 MB/s eta 0:00:00 Preparing metadata (setup.py): started Preparing metadata (setup.py): finished with status 'error' error: subprocess-exited-with-error

× python setup.py egg_info did not run successfully. │ exit code: 1 ╰─> [16 lines of output] mysql_config --version /bin/sh: mysql_config: not found mariadb_config --version /bin/sh: mariadb_config: not found mysql_config --libs

I just run docker build . -t docker-django-v0.0 and encountered above issue.

Back to Top