Skip to content

Matplotlib fails installation using pip on Python 3.9 on macOS #18881

Closed
@orome

Description

@orome

Bug report

Bug summary

Matplotlib errors on installation on Python 3.9 on macOS Catalina.

Code for reproduction

In a fresh directory, with an empty pip cache (~/Library/Caches/pip )

mkvirtualenv --python=`which python3` testmpl
pip install matplotlib

Actual outcome

Installation fails with

  ERROR: Command errored out with exit status 1:
   command: /Users/Orome/Documents/Projects/Coding/Python/venvs/testmpl/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/b6/3rk65h797p7407x7d36sqn9c0000gn/T/pip-install-4lxqi3sx/matplotlib/setup.py'"'"'; __file__='"'"'/private/var/folders/b6/3rk65h797p7407x7d36sqn9c0000gn/T/pip-install-4lxqi3sx/matplotlib/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /private/var/folders/b6/3rk65h797p7407x7d36sqn9c0000gn/T/pip-wheel-r8ksc5eb
       cwd: /private/var/folders/b6/3rk65h797p7407x7d36sqn9c0000gn/T/pip-install-4lxqi3sx/matplotlib/
  Complete output (17183 lines):
 ...
ERROR: Command errored out with exit status 1: /Users/Orome/Documents/Projects/Coding/Python/venvs/testmpl/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/b6/3rk65h797p7407x7d36sqn9c0000gn/T/pip-install-4lxqi3sx/matplotlib/setup.py'"'"'; __file__='"'"'/private/var/folders/b6/3rk65h797p7407x7d36sqn9c0000gn/T/pip-install-4lxqi3sx/matplotlib/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/b6/3rk65h797p7407x7d36sqn9c0000gn/T/pip-record-_pg93m6w/install-record.txt --single-version-externally-managed --compile --install-headers /Users/Orome/Documents/Projects/Coding/Python/venvs/testmpl/include/site/python3.9/matplotlib Check the logs for full command output.

Complete output here.

Expected outcome

Expected same behavior as with Python 3.8, which results in a successful installation.

Matplotlib version

Matplotlib: 3.3.2
Python: 3.9.0 (Homebrew in ~/Users/Roy/Documents/Projects/Coding/Python/venvs/testmpl/bin/)
Clang: 12.0 build 1200
macOS: 10.15.7-x86_64
CLT: 12.1.0.0.1.1602137645
Xcode: 12.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions