• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Cannot Download MySql Client Using Mac

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am trying to make a full-stack blog application with a flask/sql python backend while using a mac. I cannot get the mysqlclient to download.  I followed what it said on https://pypi.org/project/mysqlclient/ and it is still failing.  There seems to be a problem with mysql.h

Was successful but the following was not:
 
Saloon Keeper
Posts: 27861
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Welcome to the Ranch, Eleah!

It appears that you need additional resources beyond what pip can install. Mostly likely that means using brew to install a mysql development library.

Since I don't have MacOS, I cannot give precise names, but look for a brew package named something like "mysql-devel" or "libmysql-devel". "devel" may be shortened to "dev", though, and, as I said, my guesses are only approximate.
 
Bartender
Posts: 1156
20
Mac OS X IntelliJ IDE Oracle Spring VI Editor Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Here you go: MySQL Homebrew

The thing I see with Python is that along with many different versions, there are many different ways to install and configure it.
 
Tim Holloway
Saloon Keeper
Posts: 27861
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Classic XKCD.

But in reality, since Python Version 2 is well and truly dead at this point, most of those options no longer apply.

I think easy-install is still available for local installations (doesn't pull and install dependencies) as a legacy function.

I'm fairly sure that the "wheel" command can install, allthough it's primarily used to create installable packages.

So "pip" is the way to go.

And the mysql development libraries can apparently be installed by using brew to install "mysql". It seems that the MacOS packages may not be as fine-grained as the Linux ones.
 
Peter Rooke
Bartender
Posts: 1156
20
Mac OS X IntelliJ IDE Oracle Spring VI Editor Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

"So "pip" is the way to go."

- good to know.  ;-)
 
Is this the real life? Is this just fantasy? Is this a tiny ad?
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic