"If a worker wants to do his job well, he must first sharpen his tools." - Confucius, "The Analects of Confucius. Lu Linggong"
Front page > Programming > How to Fix \"Failed building wheel for MySql-Python\" Error in Python 3.7?

How to Fix \"Failed building wheel for MySql-Python\" Error in Python 3.7?

Published on 2024-11-04
Browse:762

How to Fix \

Error: "Failed building wheel for MySql-Python" in Python 3.7

When attempting to pip install mysqlclient in Python 3.7, you may encounter the "Failed building wheel for MySql-Python" error. This issue arises due to the lack of necessary dependencies for building the mysqlclient module.

To resolve this error, you must install the following dependencies:

sudo apt-get install python3.7-dev default-libmysqlclient-dev

Once these dependencies are installed, attempt the pip install mysqlclient command again. The installation should proceed without further errors.

Latest tutorial More>

Disclaimer: All resources provided are partly from the Internet. If there is any infringement of your copyright or other rights and interests, please explain the detailed reasons and provide proof of copyright or rights and interests and then send it to the email: [email protected] We will handle it for you as soon as possible.

Copyright© 2022 湘ICP备2022001581号-3