1. Home
  2. Tehniline
  3. Python
  4. Python MySQLdb moodul

Python MySQLdb moodul

Uues ZoneOS platvormis ei ole MySQLdb pythoni moodulit. Tekib viga: No module named MySQLdb.

Selle asemel tuleb kasutada pymysql moodulit.

pymysql mooduli saab installida pythoni virtual environment-is järgmiselt:

virtualenv --python=python3 ~/.virtualenv/mysql
~/.virtualenv/mysql/bin/pip install pymysql
~/.virtualenv/mysql/bin/python your-script.py

 

 

Updated on 29. okt. 2019

Was this article helpful?