1. Home
  2. Technical
  3. Python MySQLdb module

Python MySQLdb module

There is no MySQLdb python module in the ZoneOS software platform. This is the source of the error: No module named MySQLdb.

The pymysql module should be used instead.

pymysql module can be installed in a python virtual environment as follows:

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