xiaotusoushu Posted April 22 Posted April 22 ModuleNotFoundError: No module named 'pymysql' How to install python modules, such as pymysql?
xiaotusoushu Posted April 22 Author Posted April 22 Could you please help me installing this following modules: pymysql smtplib
xiaotusoushu Posted April 24 Author 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.
Krydos Posted April 24 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
xiaotusoushu Posted April 24 Author Posted April 24 Thanks Krydos. My flask app works now. Looks like smtplib is a built-in component.
Recommended Posts