---
title: Subprocess exited with error when installing mysqlclient.
description: "You may run into the error \"Subprocess exited with error when installing mysqlclient\" when trying to install the mysqlclient for your application using pip. This guide will take you how to resolve the issue. Requirements. Root access to the server.…"
url: "https://truehost.com/support/knowledge-base/subprocess-exited-with-error-when-installing-mysqlclient/"
updated: "2024-11-20"
category: MySQL
---

# Subprocess exited with error when installing mysqlclient.

You may run into the error "Subprocess exited with error when installing mysqlclient" when trying to install the mysqlclient for your application using pip.

This guide will take you how to resolve the issue.

Requirements.

Root access to the server.

The error occurs due to missing build dependencies required to build wheel for mysqlclient.

![](https://truehost.com/support/wp-content/uploads/2024/11/image-438-1024x482.png)

The error is clearly captured from screen when running **`pip install mysqlclient`**

![](https://truehost.com/support/wp-content/uploads/2024/11/image-442-1024x341.png)

Install the missing dependencies

Run the command

`yum install python3-devel mysql-devel pkgconfig`

![](https://truehost.com/support/wp-content/uploads/2024/11/image-445-1024x410.png)

Try again now to install mysqlclient

**`pip install mysqlclient`**

![](https://truehost.com/support/wp-content/uploads/2024/11/image-447-1024x271.png)

All Done!

You can now proceed with your app configurations!
