problems with mysql client

713 views
Skip to first unread message

Rob W

unread,
May 11, 2019, 3:16:10 PM5/11/19
to Django users
for my django project, we are using mysql.

no matter how i try to install it, python-mysqldb, or just pip install mysqlclient, it fails.

i've installed mysqlconnector, i've tried everything. 

any suggestions ?


Collecting mysqlclient

  Downloading https://files.pythonhosted.org/packages/f4/f1/3bb6f64ca7a429729413e6556b7ba5976df06019a5245a43d36032f1061e/mysqlclient-1.4.2.post1.tar.gz (85kB)

     |████████████████████████████████| 92kB 1.3MB/s 

    ERROR: Complete output from command python setup.py egg_info:

    ERROR: /bin/sh: mysql_config: command not found

    Traceback (most recent call last):

      File "<string>", line 1, in <module>

      File "/private/tmp/pip-install-suhqq3eh/mysqlclient/setup.py", line 16, in <module>

        metadata, options = get_config()

      File "/private/tmp/pip-install-suhqq3eh/mysqlclient/setup_posix.py", line 51, in get_config

        libs = mysql_config("libs")

      File "/private/tmp/pip-install-suhqq3eh/mysqlclient/setup_posix.py", line 29, in mysql_config

        raise EnvironmentError("%s not found" % (_mysql_config_path,))

    OSError: mysql_config not found

    ----------------------------------------

ERROR: Command "python setup.py egg_info" failed with error code 1 in /private/tmp/pip-install-suhqq3eh/mysqlclient/

Jorge Gimeno

unread,
May 11, 2019, 3:42:39 PM5/11/19
to django...@googlegroups.com
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/31f86e65-7e0a-49c7-b574-1670fba1ca18%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Rob,

What operating system are you using?

-Jorge 

Rob Gmail

unread,
May 11, 2019, 4:04:55 PM5/11/19
to django...@googlegroups.com
Mac OS 

Rob 
Sent from my mobile device, please excuse the typos. 

Jorge Gimeno

unread,
May 11, 2019, 4:13:16 PM5/11/19
to django...@googlegroups.com
Rob,

On the off chance you haven't seen it, I found a Stack Overflow question on this:  https://stackoverflow.com/questions/25459386/mac-os-x-environmenterror-mysql-config-not-found. Unfortunately, I don't know Mac OS all that well to offer more help than that.

-Jorge

Rob W

unread,
May 12, 2019, 6:08:06 PM5/12/19
to django...@googlegroups.com
I did, but believe it or not, that install fails too.


Sidy Ababacar Dieye

unread,
Jul 11, 2019, 1:02:03 AM7/11/19
to Django users
Did you have any solutions for this now



Ce mail est à l’attention exclusive des destinataires désignés. Il peut contenir des informations confidentielles. 

Si vous le recevez par erreur, merci de le détruire et d’en informer sans délais l’expéditeur. 

Le contenu de ce mail ne pourrait engager la responsabilité de l’Université Alioune DIOP de Bambey que s’il a été émis par une personne dûment habilitée, agissant dans le cadre strict des fonctions auxquelles elle est employée et à des fins non étrangères à ses attributions. 

Toute diffusion, copie, publication partielle ou totale, ou toute autre utilisation est interdite, sauf autorisation. 


ANIL UMARANE

unread,
Jul 11, 2019, 4:55:34 AM7/11/19
to django...@googlegroups.com
install mysqlclient wheel file

Regards..........
Anil.K


--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
Reply all
Reply to author
Forward
0 new messages