Cannot Download MySql Client Using Mac
posted 2 years ago
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
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:
Was successful but the following was not:
posted 2 years ago
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
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.
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.
Experience keeps a dear School, but Fools will learn in no other.
---
Benjamin Franklin - Postal official and Weather observer
posted 2 years ago
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
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.

The thing I see with Python is that along with many different versions, there are many different ways to install and configure it.

Regards Pete
posted 2 years ago
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
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.
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.
Experience keeps a dear School, but Fools will learn in no other.
---
Benjamin Franklin - Postal official and Weather observer
| Proudly marching to the beat of a different kettle of fish... while reading this tiny ad The new gardening playing cards kickstarter is now live! https://www.kickstarter.com/projects/paulwheaton/garden-cards |








