C:\Repos\leo-editor>python --version
Python 3.15.0rc2
C:\Repos\leo-editor>python -m pip --version
pip 26.2.1 from C:\Users\Dev\AppData\Local\Python\pythoncore-3.15-64\Lib\site-packages\pip (python 3.15)
C:\Repos\leo-editor>pymanager list
Tag Name Managed By Version Alias
3.14[-64] Python 3.14.7 PythonCore 3.14.7 python3[-64].exe, python3.14[-64].exe
3.15-dev[-64] * Python 3.15.0rc2 PythonCore 3.15.0rc2 python3.15[-64].exe
* These runtimes were found, but cannot be updated or uninstalled. *
3.14 Python 3.14 (64-bit) PythonCore 3.14.0
C:\Repos\leo-editor>pip install matplotlib
C:\Repos\leo-editor>python -m pip install matplotlib
Collecting matplotlib
Using cached matplotlib-3.11.1.tar.gz (32.6 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Installing backend dependencies ... done
Preparing metadata (pyproject.toml) ... error
error: subprocess-exited-with-error
× Preparing metadata (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [26 lines of output]
+ meson setup C:\Users\Dev\AppData\Local\Temp\pip-install-oxna0ea1\matplotlib_243dd82d1a9540958c9068f5a4c9a018 C:\Users\Dev\AppData\Local\Temp\pip-install-oxna0ea1\matplotlib_243dd82d1a9540958c9068f5a4c9a018\.mesonpy-08th9gvk -Dbuildtype=release -Db_ndebug=if-release -Db_vscrt=md --native-file=C:\Users\Dev\AppData\Local\Temp\pip-install-oxna0ea1\matplotlib_243dd82d1a9540958c9068f5a4c9a018\.mesonpy-08th9gvk\meson-python-native-file.ini
The Meson build system
Version: 1.12.0
Source dir: C:\Users\Dev\AppData\Local\Temp\pip-install-oxna0ea1\matplotlib_243dd82d1a9540958c9068f5a4c9a018
Build dir: C:\Users\Dev\AppData\Local\Temp\pip-install-oxna0ea1\matplotlib_243dd82d1a9540958c9068f5a4c9a018\.mesonpy-08th9gvk
Build type: native build
Program python found: YES 3.15.0 3.15.0
Project name: matplotlib
Project version: 3.11.1
C compiler for the host machine: cc (gcc 13.1.0 "cc (Rev7, Built by MSYS2 project) 13.1.0")
C linker for the host machine: cc ld.bfd 2.40
C++ compiler for the host machine: c++ (gcc 13.1.0 "c++ (Rev7, Built by MSYS2 project) 13.1.0")
C++ linker for the host machine: c++ ld.bfd 2.40
Host machine cpu family: x86_64
Host machine cpu: x86_64
Program python found: YES (C:\Users\Dev\AppData\Local\Python\pythoncore-3.15-64\python.exe)
Run-time dependency python found: YES 3.15
Found pkg-config: YES (C:\msys64\ucrt64\bin\pkg-config.exe) 1.9.5
pybind11-config found: YES (C:\Users\Dev\AppData\Local\Temp\pip-build-env-0bch1n7_\overlay\Scripts\pybind11-config.exe) 3.1.0
Run-time dependency pybind11 found: YES 3.1.0
Downloading freetype2 source from https://download.savannah.nongnu.org/releases/freetype/freetype-2.14.3.tar.xz
Applying diff file "freetype-2.14.1-static-harfbuzz.patch"
..\extern\meson.build:12:18: ERROR: Command 'C:\\Scripts\\patch.cmd --version' failed with status 1.
A full log can be found at C:\Users\Dev\AppData\Local\Temp\pip-install-oxna0ea1\matplotlib_243dd82d1a9540958c9068f5a4c9a018\.mesonpy-08th9gvk\meson-logs\meson-log.txt
[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.
╰─> matplotlib
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
C:\Repos\leo-editor>
On Windows, using Python 3.15.0rc2:
My initial report was flawed. But there appears to be a real problem. See below.
Details