To fix these problem until the official pip
support these changes and it becomes standard for python installation and Homebrew
run the following steps in terminal
-
brew install [email protected]
orbrew re-install [email protected]
-
brew install openblas
` -
OPENBLAS="$(brew --prefix openblas)" MACOSX_DEPLOYMENT_TARGET=11.1 python3 -m pip install cython --no-use-pep517
-
OPENBLAS="$(brew --prefix openblas)" MACOSX_DEPLOYMENT_TARGET=11.1 python3 -m pip install numpy --no-use-pep517
-
OPENBLAS="$(brew --prefix openblas)" MACOSX_DEPLOYMENT_TARGET=11.1 python3 -m pip install pandas --no-use-pep517
-
OPENBLAS="$(brew --prefix openblas)" MACOSX_DEPLOYMENT_TARGET=11.1 python3 -m pip install pybind11 --no-use-pep517
-
OPENBLAS="$(brew --prefix openblas)" MACOSX_DEPLOYMENT_TARGET=11.1 python3 -m pip install scipy --no-use-pep517
-
brew install libjpeg zlib
-
python3 -m pip install pillow
-
python3 -m pip install matplotlib
can do the same for other packages but I was interested in data science and machine learning stuff like
OPENBLAS="$(brew --prefix openblas)" MACOSX_DEPLOYMENT_TARGET=11.1 python3 -m pip install scikit-learn --no-use-pep517
OPENBLAS="$(brew --prefix openblas)" MACOSX_DEPLOYMENT_TARGET=11.1 python3 -m pip install statsmodels --no-use-pep517
hint: you might need to run these with sudo
depending on your enviroment desired for installation. Also pip should be upgraded to at least pip==20.3.0
I am able to install every package. But I am not able to install util. I used the following command.
OPENBLAS="$(brew --prefix openblas)" MACOSX_DEPLOYMENT_TARGET=11.1 python3 -m pip install util --no-use-pep517
And I get this error: ERROR: Could not find a version that satisfies the requirement util (from versions: none)
Do you have any idea how to get util installed in a m1 mac