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!