-1

How to use homebrew to install matplotlib and pandas for python 3.9.1 natively support to Apple silicon without rosetta? Can't find matplotlib and pandas in homebrew formulae. I used homebrew to install python@3.9, numpy and scipy. But I can't install matplotlib, pandas, folim and image. If I use pip3 install matplotlib, it comes with error as shown,
Building wheel for pillow (setup.py) ... error

What shall I do now? Thank you


Error message:

$ brew install matplotlib

Error: No formulae found in taps.

$ pip3 install matplotlib

Building wheel for pillow (setup.py)...error

...hundreds of errors...

ERROR: Command errorted out with exit status 1: /opt/homebrew/opt/python@3.9/bin/python3.9 -u -c ... --install-headers /opt/homebrew/include/python3.9/pillow Check the logs for full command output.


When I am trying to install pandas, folim and image, it comes with similar errors.

AUDIOX_1
  • 59
  • 2
  • 6
  • Hi! Please use `code formatting`, and provide the exact commands you have run and their output. Please also run `brew config` and provide the output. Thanks! – Carl Feb 17 '21 at 18:24
  • Please don't add information in comments, rather, edit your question to inlcude the error messages. Please also read https://stackoverflow.com/help/how-to-ask carefully and edit your question accordingly. Thanks! – Carl Feb 18 '21 at 11:08

2 Answers2

1

You are most probably looking for pip. Use pip3 install matplotlib.

Johann Lau
  • 173
  • 1
  • 15
  • I am trying to ask how to use homebrew To install matplotlib. Answer@tatsuki.dev is trying to use pip3 installing matplotlib, which is no easy to approach(All files in different directory; it looks mess when you use the answer from @tatsuki). I want easier way to install and manage the files. – AUDIOX_1 Mar 07 '21 at 23:36
0

@tatsuki.dev
Here is Stack overflow link for sharing answer. stackoverflow.com/a/66254586/15141364

pip3 install cython OPENBLAS="$(brew --prefix openblas)" MACOSX_DEPLOYMENT_TARGET=11.1 pip3 install numpy --no-use-pep517 OPENBLAS="$(brew --prefix openblas)" MACOSX_DEPLOYMENT_TARGET=11.1 pip3 install pandas --no-use-pep517 Share

AUDIOX_1
  • 59
  • 2
  • 6
  • 1
    This question is not duplicate. Because I am trying to ask how to use homebrew To install matplotlib. Answer@tatsuki.dev is trying to use pip3 installing matplotlib, which is no easy to approach(All files in different directory; it looks mess when you use the answer from @tatsuki). I want easier way to install and manage the files. – AUDIOX_1 Mar 07 '21 at 00:38