Edit install matplotlib v3.9.0 Windows - pybind11 include dir

When installing v3.9.0, I was getting errors fatal error C1083: Cannot open include file: 'pybind11/pybind11.h': No such file or directory. The problem was that in the include dir C:\programs\mambaforge\envs\mpl-dev\Include was only a folder pybind11-global, not pybind (which was inside pybind11-global). The solution was to conda uninstall pybind11 and then pip install pybind11[global] which created both pybind11 and pybind11-global folders (maybe pip install pybind11 would have been sufficient too).

This is just for reference if someone else experiences a similar problem.

It appears that there’s a pybind11-global in conda-forge, which should probably be prefered over mixing with pip. But I’m not sure why I have it installed, and it didn’t come in for you.