text: Title: Cannot install package `d2l` due to failure of collecting `matplotlib` version 3.4
  Body: Dear all,
  
  I am on Macbook Pro Early 2011 and macOS 10.13.6. I was trying to install the `d2l` package and it outputs the following. I have `matplotlib` version 3.6.2 and `matplotlib-inline` version 0.1.6 installed on my machine. The Python version I use is 3.11.2, which I think is the latest(?).
  
  ```
  ➜  ~ python3 -m pip install -U d2l
  Defaulting to user installation because normal site-packages is not writeable
  Collecting d2l
    Using cached d2l-0.17.6-py3-none-any.whl (112 kB)
  Collecting jupyter==1.0.0
    Using cached jupyter-1.0.0-py2.py3-none-any.whl (2.7 kB)
  Collecting d2l
    Using cached d2l-0.17.5-py3-none-any.whl (82 kB)
    Using cached d2l-0.17.4-py3-none-any.whl (82 kB)
  Requirement already satisfied: numpy==1.22.2 in ./Library/Python/3.11/lib/python/site-packages (from d2l) (1.22.2)
  Collecting matplotlib==3.4
    Using cached matplotlib-3.4.0.tar.gz (37.1 MB)
    Preparing metadata (setup.py) ... error
    error: subprocess-exited-with-error
  
    × python setup.py egg_info did not run successfully.
    │ exit code: 1
    ╰─> [84 lines of output]
        /Users/Latisp/Library/Python/3.11/lib/python/site-packages/setuptools/dist.py:286: SetuptoolsDeprecationWarning: The namespace_packages parameter is deprecated, consider using implicit namespaces instead (PEP 420).
          warnings.warn(msg, SetuptoolsDeprecationWarning)
  
        Edit setup.cfg to change the build options; suppress output with --quiet.
  
        BUILDING MATPLOTLIB
          matplotlib: yes [3.4.0]
              python: yes [3.11.2 (main, Feb 10 2023, 08:25:48) [Clang 9.1.0
                          (clang-902.0.39.2)]]
            platform: yes [darwin]
               tests: no  [skipping due to configuration]
              macosx: yes [installing]
  
        running egg_info
        creating /private/var/folders/xt/4_gn7ry143zg0b8vwddc51nw0000gn/T/pip-pip-egg-info-1pzecj58/matplotlib.egg-info
        writing /private/var/folders/xt/4_gn7ry143zg0b8vwddc51nw0000gn/T/pip-pip-egg-info-1pzecj58/matplotlib.egg-info/PKG-INFO
        writing dependency_links to /private/var/folders/xt/4_gn7ry143zg0b8vwddc51nw0000gn/T/pip-pip-egg-info-1pzecj58/matplotlib.egg-info/dependency_links.txt
        writing namespace_packages to /private/var/folders/xt/4_gn7ry143zg0b8vwddc51nw0000gn/T/pip-pip-egg-info-1pzecj58/matplotlib.egg-info/namespace_packages.txt
        writing requirements to /private/var/folders/xt/4_gn7ry143zg0b8vwddc51nw0000gn/T/pip-pip-egg-info-1pzecj58/matplotlib.egg-info/requires.txt
        writing top-level names to /private/var/folders/xt/4_gn7ry143zg0b8vwddc51nw0000gn/T/pip-pip-egg-info-1pzecj58/matplotlib.egg-info/top_level.txt
        writing manifest file '/private/var/folders/xt/4_gn7ry143zg0b8vwddc51nw0000gn/T/pip-pip-egg-info-1pzecj58/matplotlib.egg-info/SOURCES.txt'
        /Users/Latisp/Library/Python/3.11/lib/python/site-packages/setuptools/command/egg_info.py:643: SetuptoolsDeprecationWarning: Custom 'build_py' does not implement 'get_data_files_without_manifest'.
        Please extend command classes from setuptools instead of distutils.
          warnings.warn(
        Python(31612,0x7fff8c346380) malloc: *** mach_vm_map(size=18446744072367222784) failed (error code=3)
        *** error: can't allocate region
        *** set a breakpoint in malloc_error_break to debug
        init_dgelsd failed init
        Traceback (most recent call last):
          File "<string>", line 2, in <module>
          File "<pip-setuptools-caller>", line 34, in <module>
          File "/private/var/folders/xt/4_gn7ry143zg0b8vwddc51nw0000gn/T/pip-install-hg_s7w6r/matplotlib_63c8b20ecb3849b6b370d5c25a120a6d/setup.py", line 258, in <module>
            setup(  # Finally, pass this all along to distutils to do the heavy lifting.
          File "/Users/Latisp/Library/Python/3.11/lib/python/site-packages/setuptools/__init__.py", line 87, in setup
            return distutils.core.setup(**attrs)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
          File "/Users/Latisp/Library/Python/3.11/lib/python/site-packages/setuptools/_distutils/core.py", line 185, in setup
            return run_commands(dist)
                   ^^^^^^^^^^^^^^^^^^
          File "/Users/Latisp/Library/Python/3.11/lib/python/site-packages/setuptools/_distutils/core.py", line 201, in run_commands
            dist.run_commands()
          File "/Users/Latisp/Library/Python/3.11/lib/python/site-packages/setuptools/_distutils/dist.py", line 968, in run_commands
            self.run_command(cmd)
          File "/Users/Latisp/Library/Python/3.11/lib/python/site-packages/setuptools/dist.py", line 1217, in run_command
            super().run_command(command)
          File "/Users/Latisp/Library/Python/3.11/lib/python/site-packages/setuptools/_distutils/dist.py", line 987, in run_command
            cmd_obj.run()
          File "/Users/Latisp/Library/Python/3.11/lib/python/site-packages/setuptools/command/egg_info.py", line 308, in run
            self.find_sources()
          File "/Users/Latisp/Library/Python/3.11/lib/python/site-packages/setuptools/command/egg_info.py", line 316, in find_sources
            mm.run()
          File "/Users/Latisp/Library/Python/3.11/lib/python/site-packages/setuptools/command/egg_info.py", line 560, in run
            self.add_defaults()
          File "/Users/Latisp/Library/Python/3.11/lib/python/site-packages/setuptools/command/egg_info.py", line 597, in add_defaults
            sdist.add_defaults(self)
          File "/Users/Latisp/Library/Python/3.11/lib/python/site-packages/setuptools/command/sdist.py", line 106, in add_defaults
            super().add_defaults()
          File "/Users/Latisp/Library/Python/3.11/lib/python/site-packages/setuptools/_distutils/command/sdist.py", line 252, in add_defaults
            self._add_defaults_ext()
          File "/Users/Latisp/Library/Python/3.11/lib/python/site-packages/setuptools/_distutils/command/sdist.py", line 336, in _add_defaults_ext
            build_ext = self.get_finalized_command('build_ext')
                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
          File "/Users/Latisp/Library/Python/3.11/lib/python/site-packages/setuptools/_distutils/cmd.py", line 306, in get_finalized_command
            cmd_obj.ensure_finalized()
          File "/Users/Latisp/Library/Python/3.11/lib/python/site-packages/setuptools/_distutils/cmd.py", line 109, in ensure_finalized
            self.finalize_options()
          File "/private/var/folders/xt/4_gn7ry143zg0b8vwddc51nw0000gn/T/pip-install-hg_s7w6r/matplotlib_63c8b20ecb3849b6b370d5c25a120a6d/setup.py", line 90, in finalize_options
            self.distribution.ext_modules[:] = [
                                               ^
          File "/private/var/folders/xt/4_gn7ry143zg0b8vwddc51nw0000gn/T/pip-install-hg_s7w6r/matplotlib_63c8b20ecb3849b6b370d5c25a120a6d/setup.py", line 90, in <listcomp>
            self.distribution.ext_modules[:] = [
                                               ^
          File "/private/var/folders/xt/4_gn7ry143zg0b8vwddc51nw0000gn/T/pip-install-hg_s7w6r/matplotlib_63c8b20ecb3849b6b370d5c25a120a6d/setupext.py", line 383, in get_extensions
            add_numpy_flags(ext)
          File "/private/var/folders/xt/4_gn7ry143zg0b8vwddc51nw0000gn/T/pip-install-hg_s7w6r/matplotlib_63c8b20ecb3849b6b370d5c25a120a6d/setupext.py", line 498, in add_numpy_flags
            import numpy as np
          File "/Users/Latisp/Library/Python/3.11/lib/python/site-packages/numpy/__init__.py", line 380, in <module>
            raise RuntimeError(msg)
        RuntimeError: Polyfit sanity test emitted a warning, most likely due to using a buggy Accelerate backend.
        If you compiled yourself, more information is available at:
        https://numpy.org/doc/stable/user/building.html#accelerated-blas-lapack-libraries
        Otherwise report this to the vendor that provided NumPy.
        RankWarning: Polyfit may be poorly conditioned
  
        [end of output]
  
    note: This error originates from a subprocess, and is likely not a problem with pip.
  error: metadata-generation-failed
  
  × Encountered error while generating package metadata.
  ╰─> See above for output.
  
  note: This is an issue with the package mentioned above, not pip.
  hint: See above for details.
  ```