Skip to content

Instantly share code, notes, and snippets.

@barbietunnie
Created July 17, 2024 11:56
Show Gist options
  • Save barbietunnie/0cbec896ca39e35e415e5ac0165d0ac0 to your computer and use it in GitHub Desktop.
Save barbietunnie/0cbec896ca39e35e415e5ac0165d0ac0 to your computer and use it in GitHub Desktop.
Install `mysqlclient` with pip on Ubuntu 22

Install mysqlclient with pip on Ubuntu 22

Without installing pkg-config before attempting to install mysqlclient on Ubuntu 22 fails and subsequently breaks apt-pkg.

To install it without issues, run the following commands:

sudo apt install pkg-config
pip install mysqlclient
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment