« How To Set Alias For Changing Directory ( CD ) And Other Common Functions | How to compress images in Mac in an optimal way »
mysql_config: command not found or mariadb_config: command not found while installing flask-mysqldb
You may encounter this error “/bin/sh: mysql_config: command not found” while installing flask-mysqldb with pip or pip3. This error is caused due to non-availability of packages that are required at the system level.
Install the necessary packages by executing the below command in Fedora
sudo dnf install python-devel mysql-devel
and then install flask-mysqldb
pip3 install flask-mysqldb
In Ubuntu, by installing the package “python-mysqldb” by executing the command “sudo apt-get install python-mysqldb
” will solve this issue.
Leave a comment