![]() Spent a fair amount of time trying to get that to work before giving up. But every time I tried to do python setup.py sdist bdist_wheel I got error: invalid command 'bdist_wheel'. I thought that the issue might be related to Miserlou/Zappa#319, so I tried to create a wheel from the Platform Independent ZIP archive (from MySQL's download page). I am running Zappa from a virtual environment and am using Python 3.6. I get the exact same issue, ModuleNotFoundError: No module named 'mysql' on Lambda (again, it works perfectly locally). ![]() I also tried uninstalling mysql-connector-python and instead installed mysql-connector-python-rf via pip install mysql-connector-python-rf. I'm installing mysql-connector-python from source URL: Everything works fine locally, the error only occurs on Lambda. I'm trying to use MySQL Connector/Python with Zappa but keep getting ModuleNotFoundError: No module named 'mysql' after deploying. This error can be easily solved by checking if the MYSQL module is installed in your Python environment and, if not, by installing it.īy following the guide above, there’s no doubt that you’ll be able to resolve this error quickly.Originally from: Miserlou/Zappa#1401 by jsahoo Context In conclusion, modulenotfounderror no module named mysql python3 is an error message in Python. ![]() If it is already the latest version, this will come out: “ Requirement already satisfied.” Conclusion Use this command to upgrade your MySQL-connector-python to its latest version.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |