2

pip install sqlalchemy should be able to install all dependences that it needs. However, it complains No module named MySQLdb. I found that MySQLdb is only for python2. What is up here?

enter image description here

Ilja Everilä
  • 45,748
  • 6
  • 100
  • 105
Tiina
  • 3,585
  • 4
  • 38
  • 64

2 Answers2

5

please install this mysqlclient using the command pip install mysqlclient mysqldb deprecated in python3 mysqlclient is the fork of mysqldb and added python3 support

Nakul Narayanan
  • 1,252
  • 12
  • 16
0

This post shows all kinds of ways to get MySQL working on Python 3.

How can I connect to MySQL in Python 3 on Windows?

Wouter
  • 160
  • 2
  • 7