-1

I tried to install mysql module and got this:

Running setup.py install for mysqlclient ... error
ERROR: Command errored out with exit status 1

Then I tried this install --only-binary :all: mysqlclient

but got "Could not find a version that satisfies the requirement mysqlclient (from versions: ) No matching distribution found for mysqlclient "

This is the log

log, part2

log, part3

ZurdoRod
  • 11
  • 3
  • Installed Visual studio tools and got this: MySQLdb/_mysql.c(29): fatal error C1083: No se puede abrir el archivo inclui r: 'mysql.h': No such file or directory – ZurdoRod Jun 23 '20 at 10:25
  • May be you could find your answer here: https://stackoverflow.com/questions/51062920/pip-install-mysqlclient-error – S M Vaidhyanathan Jun 23 '20 at 10:26
  • I tried all answers from that post @SMVaidhyanathan – ZurdoRod Jun 23 '20 at 10:37
  • Which version of Python are you using? If you are using 3.7.x , then uninstall that and install Python 3.6.5 and type the command ```pip install mysqlclient==1.3.12``` – S M Vaidhyanathan Jun 23 '20 at 10:44
  • I installed this on my personal computer and a server without a problem, but now it doesnt work in another server with the same specs as the previous server – ZurdoRod Jun 23 '20 at 10:44
  • 1
    pip install mysql-connector after I installed visual studio build tools worked! – ZurdoRod Jun 23 '20 at 10:47

1 Answers1

0

May be mysql connector is missing try installing mysql connector

pip3 install mysql-connector --user
Qbert
  • 326
  • 3
  • 5