OSError:mysql_config not found installing python mysqlclient

Problems with the Mac OS X version of XAMPP, questions, comments, and anything related.

OSError:mysql_config not found installing python mysqlclient

Postby alfredopacino » 25. April 2019 19:55

Hello, trying to run
Code: Select all
pip install mysqlclient
I get the error
Code: Select all
MBP-of-admin:django_project aanto$ pip install mysqlclient
Collecting mysqlclient
  Using cached https://files.pythonhosted.org/packages/f4/f1/3bb6f64ca7a429729413e6556b7ba5976df06019a5245a43d36032f1061e/mysqlclient-1.4.2.post1.tar.gz
    Complete output from command python setup.py egg_info:
    /bin/sh: mysql_config: command not found
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/private/var/folders/jw/4xk541g14mq3ljnws61fbt_m0000gn/T/pip-install-0u41r1pb/mysqlclient/setup.py", line 16, in <module>
        metadata, options = get_config()
      File "/private/var/folders/jw/4xk541g14mq3ljnws61fbt_m0000gn/T/pip-install-0u41r1pb/mysqlclient/setup_posix.py", line 51, in get_config
        libs = mysql_config("libs")
      File "/private/var/folders/jw/4xk541g14mq3ljnws61fbt_m0000gn/T/pip-install-0u41r1pb/mysqlclient/setup_posix.py", line 29, in mysql_config
        raise EnvironmentError("%s not found" % (_mysql_config_path,))
    OSError: mysql_config not found

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/jw/4xk541g14mq3ljnws61fbt_m0000gn/T/pip-install-0u41r1pb/mysqlclient/


how can I solve?
alfredopacino
 
Posts: 9
Joined: 02. January 2014 15:47
Operating System: windows 7

Re: OSError:mysql_config not found installing python mysqlcl

Postby alfredopacino » 27. April 2019 17:44

I thought it was something easy to fix, should I give up and use the proper macos mysql package without XAMPP?
alfredopacino
 
Posts: 9
Joined: 02. January 2014 15:47
Operating System: windows 7

Re: OSError:mysql_config not found installing python mysqlcl

Postby Nobbie » 27. April 2019 22:17

Feel free to do what you like to do.
Nobbie
 
Posts: 13182
Joined: 09. March 2008 13:04

Re: OSError:mysql_config not found installing python mysqlcl

Postby alfredopacino » 28. April 2019 01:55

thanks?
alfredopacino
 
Posts: 9
Joined: 02. January 2014 15:47
Operating System: windows 7


Return to XAMPP for macOS

Who is online

Users browsing this forum: No registered users and 8 guests