ModuleNotFoundError: нет модуля с именем '_mysql' на Python 3.8.2

I am currently trying to run a python3 script, and I am running into the error "ModuleNotFoundError: no module named '_mysql' on Python 3.8.2".

I have used the same script before on this install of Ubuntu and it seemed to work just fine up until today.

I tried looking the error up and only 1 result showed up but nothing worked on that result, as expected.

Any advice? Thanks.

задан 29 July 2020 в 22:02

1 ответ

Install python3-mysqldb

You can intall this package in Ubuntu via this command:

sudo apt install python3-mysqldb
ответ дан 2 August 2020 в 22:02

Другие вопросы по тегам:

Похожие вопросы: