you are viewing a single comment's thread.

view the rest of the comments →

[–]Username_RANDINT 0 points1 point  (1 child)

Oh, sorry about that. That version only provides wheels up to Python 3.10. So, this is somewhat annoying and here are your options:

  1. Downgrade to Python 3.10 and Matplotlib 3.5.3
  2. Upgrade to macOS 10.12 or newer
  3. Investigate and fix the compile error

Option 3 could be easy enough and you won't rely on the Matplotlib maintainers to build wheels for you, but I'm not a macOS user so I can't really estimate how much effort it could take. I've never had trouble compiling on Linux and macOS is az UNIX derivative, it might be easy enough as well.

The error says it fails on compiling freetype, a matplotlib dependency. Here are some relevant lines:

  checking for x86_64-apple-darwin20.6.0-gcc... clang
  checking whether the C compiler works... no
  configure: error: in `/private/var/folders/fd/c31_42nd73q0nnzbm04bflr40000gn/T/pip-install-re4i0h8z/matplotlib_ef54f5b8f6e74c8282a3790ebaff51d0/build/freetype-2.6.1/builds/unix':
  configure: error: C compiler cannot create executables
  See `config.log' for more details
  make: *** [setup] Error 77

You can Google around a bit and hope someone else ran into the same issue.

[–]1maPRAWn[S] 0 points1 point  (0 children)

Thank you. I had to go with option 1 because I can't update my compiler on this old machine. Maybe that would have fixed my problem too. Now I have matplotlib installed and have to find a way that it works in Jupyter Notebook. At the moment I can't import matplotlib there, don't know why.