Installing mysqlclient failed using pyproject.toml and poetry install

498 Views Asked by At

I have pyproject.toml in the root dir of my Streamlit app and I use poetry install to create the virtual environment and install dependencies. I am running into a problem installing mysqlclient because it throws this error:

 • Installing mysqlclient (1.4.6): Failed

ChefBuildError

Backend subprocess exited when trying to invoke get_requires_for_build_wheel

/bin/sh: 1: mysql_config: not found
/bin/sh: 1: mariadb_config: not found
/bin/sh: 1: mysql_config: not found

Here is the pyproject.toml file:

[tool.poetry]
name = "Testing"
version = "0.0.1"
description = "Testing mysqlclient installation"
authors = ["me <[email protected]>"]
readme = "README.md"
packages = [{include = "src"}]

[tool.poetry.dependencies]
mysqlclient = "*"

What am I doing wrong? Why can't it handle the installation of the mysqlclient ?

0

There are 0 best solutions below