mysqlclient related errors in ubuntu
mysqlclient installation with error in ubuntu solved
Bug
/bin/sh: 1
: pkg-config: not found
Exception: Can not find valid pkg-config name. Specify MYSQLCLIENT_CFLAGS and MYSQLCLIENT_LDFLAGS env vars manually
Install build dependencies
Install build dependencies ( specially - pkg-config )
Reference
Could not build wheels for cffi
Bug
Building wheels for collected packages: cffi, mysqlclient
Building wheel for cffi (pyproject.toml) ... error
error: subprocess-exited-with-error
× Building wheel for cffi (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [56 lines of output]
ERROR: Could not build wheels for cffi, which is required to install pyproject.toml-based projects
Solved
I just installed libffi-dev with sudo apt-get install libffi-dev
and it worked.
Reference