Home  >  Article  >  Database  >  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?

Barbara Streisand
Barbara StreisandOriginal
2024-10-25 19:35:03204browse

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.

The above is the detailed content of How to Fix \"Failed building wheel for MySql-Python\" Error in Python 3.7?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn