pip install mysql
I am facing issue in code in above
error: subprocess-exited-with-error
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
note: This is an issue with the package mentioned above, not pip.
I try pip3 install mysql
2
Answers
This can be because you are using a newer Python version which doesn’t support MySQL.
Try to use Python 3.9.
The mysql package you are trying to install is not a valid package name, so pip is not able to find it. If you are trying to install a Python connector for MySQL, you should use the mysql-connector-python package instead.