Home > Database > Mysql Tutorial > body text

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

Barbara Streisand
Release: 2024-10-25 19:35:03
Original
203 people have browsed it

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
Copy after login

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!

source:php.cn
Statement of this Website
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
Latest Articles by Author
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!