No module named mysql
The error message "No module named 'mysql'" means that the Python interpreter cannot find the 'mysql' module.
To resolve this issue, you need to install the 'mysql' module. You can do this by running the following command in your terminal or command prompt:
pip install mysql-connector-python
If you are using Python 3, you may need to use the following command:
pip3 install mysql-connector-python
After installing the module, you should be able to import it in your Python code without any issues
原文地址: https://www.cveoy.top/t/topic/hJ3O 著作权归作者所有。请勿转载和采集!