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ä
  • 50,538
  • 7
  • 126
  • 127
Tiina
  • 4,285
  • 7
  • 44
  • 73

2 Answers2

7

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,412
  • 13
  • 17
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
  • 190
  • 2
  • 8