Debian Buster: ModuleNotFoundError: No module named 'mysql'

Michael Torrie torriem at gmail.com
Sat Jan 18 11:46:05 EST 2020


On 1/18/20 9:03 AM, ^Bart wrote:
>> What could I do to fix this issue?! :\
> 
> I understood I have Python 2.7 and Python 3 but I can't install modules 
> on Python 3... :\
> 
> ^Bart

pip is probably defaulting to Python 2.7. Try using pip3, or this more
explicit syntax:

python3 -m pip install <module>




More information about the Python-list mailing list