You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On latest version of Python 3.13.3 and pip version pip 25.0.1
command "python -m pip install matplotlib" error "Building wheel for kiwisolver (pyproject.toml) ... error".
OS: Windows 10 x86 Version 10.0.19042 Build 19042
Visual Studio Build Tools 2022 - 17.13.6
MSVC v143 - VS 2022 C++ x64/x86 build tools (latest)
C++ CMake tools for Windows
Testing tools core features - Build Tools
C++ AddressSanitizer
vcpkg package manager
Windows 10 SDK (10.0.20348.0)
× Building wheel for kiwisolver (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [79 lines of output]
C:\Users\zhouyunwen\AppData\Local\Temp\pip-build-env-sqceeljf\overlay\Lib\site-packages\setuptools\config_apply_pyprojecttoml.py:82: SetuptoolsDeprecationWarning: project.license as a TOML table is deprecated
!!
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for kiwisolver
Failed to build kiwisolver
ERROR: Failed to build installable wheels for some pyproject.toml based projects (kiwisolver)
Expected outcome
Successfully installed matplotlib
Additional information
Found this hint related to the whl building error:
"cl : Command line warning D9025 : overriding '/MD' with '/MT'"
"LIBCMT.lib(dll_dllmain.obj) : error LNK2001: unresolved external symbol __except_handler4"
But don't know how this happened nor how to fix
Other whl building on same machine and software environment works correctly
Operating system
Windows 10 32-bit (10.0.19042 Build 19042)
Matplotlib Version
3.10.1
Matplotlib Backend
No response
Python version
Python 3.13.3
Jupyter version
No response
Installation
pip
The text was updated successfully, but these errors were encountered:
pip is trying to build from source because there are no pre-built wheels for your system and python 3.13. Unfortunately most packages will not have those for 32-bit systems any more. One option is to downgrade your python version and use older packages. Looking back through the releases, I think the newest Matplotlib that supports 32-bit Windows is Matplotlib 3.7.5, which has wheels for python 3.11. So if you install python 3.11 and then do
pip is trying to build from source because there are no pre-built wheels for your system and python 3.13. Unfortunately most packages will not have those for 32-bit systems any more. One option is to downgrade your python version and use older packages. Looking back through the releases, I think the newest Matplotlib that supports 32-bit Windows is Matplotlib 3.7.5, which has wheels for python 3.11. So if you install python 3.11 and then do
python -m pip install matplotlib --prefer-binary
you should have more luck.
Thx for the quick response! Yep, 32bit Win10 is rare nowadays. Will give 3.11 a try and report back.
Bug summary
On latest version of Python 3.13.3 and pip version pip 25.0.1
command "python -m pip install matplotlib" error "Building wheel for kiwisolver (pyproject.toml) ... error".
OS: Windows 10 x86 Version 10.0.19042 Build 19042
Visual Studio Build Tools 2022 - 17.13.6
MSVC v143 - VS 2022 C++ x64/x86 build tools (latest)
C++ CMake tools for Windows
Testing tools core features - Build Tools
C++ AddressSanitizer
vcpkg package manager
Windows 10 SDK (10.0.20348.0)
Code for reproduction
Actual outcome
Windows\System32>python -m pip install matplotlib
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Collecting matplotlib
Using cached matplotlib-3.10.1-cp313-cp313-win32.whl
Collecting contourpy>=1.0.1 (from matplotlib)
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/19/ba/b227c3886d120e60e41b28740ac3617b2f2b971b9f601c835661194579f1/contourpy-1.3.2-cp313-cp313-win32.whl (178 kB)
Collecting cycler>=0.10 (from matplotlib)
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/e7/05/c19819d5e3d95294a6f5947fb9b9629efb316b96de511b418c53d245aae6/cycler-0.12.1-py3-none-any.whl (8.3 kB)
Collecting fonttools>=4.22.0 (from matplotlib)
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/4c/e4/6934513ec2c4d3d69ca1bc3bd34d5c69dafcbf68c15388dd3bb062daf345/fonttools-4.57.0-cp313-cp313-win32.whl (2.1 MB)
Collecting kiwisolver>=1.3.1 (from matplotlib)
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/82/59/7c91426a8ac292e1cdd53a63b6d9439abd573c875c3f92c146767dd33faf/kiwisolver-1.4.8.tar.gz (97 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Requirement already satisfied: numpy>=1.23 in c:\users\zhouyunwen\appdata\local\programs\python\python313-32\lib\site-packages (from matplotlib) (2.2.5)
Requirement already satisfied: packaging>=20.0 in c:\users\zhouyunwen\appdata\local\programs\python\python313-32\lib\site-packages (from matplotlib) (25.0)
Collecting pillow>=8 (from matplotlib)
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/94/86/8f2e9d2dc3d308dfd137a07fe1cc478df0a23d42a6c4093b087e738e4827/pillow-11.2.1-cp313-cp313-win32.whl (2.3 MB)
Collecting pyparsing>=2.3.1 (from matplotlib)
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/05/e7/df2285f3d08fee213f2d041540fa4fc9ca6c2d44cf36d3a035bf2a8d2bcc/pyparsing-3.2.3-py3-none-any.whl (111 kB)
Requirement already satisfied: python-dateutil>=2.7 in c:\users\zhouyunwen\appdata\local\programs\python\python313-32\lib\site-packages (from matplotlib) (2.9.0.post0)
Requirement already satisfied: six>=1.5 in c:\users\zhouyunwen\appdata\local\programs\python\python313-32\lib\site-packages (from python-dateutil>=2.7->matplotlib) (1.17.0)
Building wheels for collected packages: kiwisolver
Building wheel for kiwisolver (pyproject.toml) ... error
error: subprocess-exited-with-error
× Building wheel for kiwisolver (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [79 lines of output]
C:\Users\zhouyunwen\AppData\Local\Temp\pip-build-env-sqceeljf\overlay\Lib\site-packages\setuptools\config_apply_pyprojecttoml.py:82: SetuptoolsDeprecationWarning:
project.license
as a TOML table is deprecated!!
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for kiwisolver
Failed to build kiwisolver
ERROR: Failed to build installable wheels for some pyproject.toml based projects (kiwisolver)
Expected outcome
Successfully installed matplotlib
Additional information
Found this hint related to the whl building error:
"cl : Command line warning D9025 : overriding '/MD' with '/MT'"
"LIBCMT.lib(dll_dllmain.obj) : error LNK2001: unresolved external symbol __except_handler4"
But don't know how this happened nor how to fix
Other whl building on same machine and software environment works correctly
Operating system
Windows 10 32-bit (10.0.19042 Build 19042)
Matplotlib Version
3.10.1
Matplotlib Backend
No response
Python version
Python 3.13.3
Jupyter version
No response
Installation
pip
The text was updated successfully, but these errors were encountered: