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
How did you know to do this? Any idea on how to fix this using poetry?