xiaotusoushu Posted April 22 Share Posted April 22 ModuleNotFoundError: No module named 'pymysql' How to install python modules, such as pymysql? Quote Link to comment Share on other sites More sharing options...
MoneyBroz Posted April 22 Share Posted April 22 Krydos would have to install modules for you. Quote Link to comment Share on other sites More sharing options...
xiaotusoushu Posted April 22 Author Share Posted April 22 Could you please help me installing this following modules: pymysql smtplib Quote Link to comment Share on other sites More sharing options...
Krydos Posted April 22 Share Posted April 22 Python 2.7, Python 3.6, or Python 3.10? Quote Link to comment Share on other sites More sharing options...
xiaotusoushu Posted April 23 Author Share Posted April 23 Python 3.10 Thanks. Quote Link to comment Share on other sites More sharing options...
xiaotusoushu Posted April 24 Author Share Posted April 24 On 4/23/2024 at 2:33 AM, Krydos said: Python 2.7, Python 3.6, or Python 3.10? Please install them for Python 3.10. Quote Link to comment Share on other sites More sharing options...
Krydos Posted April 24 Share Posted April 24 On 4/22/2024 at 12:20 AM, xiaotusoushu said: pymysql Installed, but I'd like to mention that we already have 3 different Python modules to connect to MySQL. Why not use one of the existing modules rather than installing a different one? On 4/22/2024 at 12:20 AM, xiaotusoushu said: smtplib # /usr/local/python3.10/bin/pip3.10 install smtplib ERROR: Could not find a version that satisfies the requirement smtplib (from versions: none) ERROR: No matching distribution found for smtplib You can see the current list of installed modules on Tommy's Python 3.10 with this link https://krydos.heliohost.org/pyinfo/info3.10.py Quote Link to comment Share on other sites More sharing options...
xiaotusoushu Posted April 24 Author Share Posted April 24 Thanks Krydos. My flask app works now. Looks like smtplib is a built-in component. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.