1. Home
  2. Tehniline
  3. Python MySQLdb moodul

Python MySQLdb moodul

ZoneOS tarkvaraplatvormis ei ole MySQLdb pythoni moodulit. Sellest 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 23. apr. 2024
Was this article helpful?

Related Articles