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.
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