Troubleshooting#
For guidance on debugging an installation, seeFrequently asked questions.
Problems with git#
First, make sure you have a clean build and install (seeHow to completely remove Matplotlib),get the latest git update, install it and run a simple test script in debugmode:
rm-rf/path/to/site-packages/matplotlib*gitclean-xfdgitpullpython-mpipinstall-v.>build.outpython-c"from pylab import *; set_loglevel('debug'); plot(); show()">run.out
and postbuild.out
andrun.out
to thematplotlib-develmailing list (please do not post git problems to theusers list).
Of course, you will want to clearly describe your problem, what youare expecting and what you are getting, but often a clean build andinstall will help. See alsoGet help.
Unlink of file*/_c_internal_utils.cp311-win_amd64.pyd
failed#
The DLL files may be loaded by multiple running instances of Matplotlib; thereforecheck that Matplotlib is not running in any other application before trying tounlink this file. Multiple versions of Matplotlib can be linked to the same DLL,for example a development version installed in a development conda environmentand a stable version running in a Jupyter notebook. To resolve this error, fullyclose all running instances of Matplotlib.
Windows compilation errors#
If the compiled extensions are not building on Windows due to errors in linking toWindows' header files, for example../../src/_tkagg.cpp:133:10:error:'WM_DPICHANGED'wasnotdeclaredinthisscope
,you should check which compiler Meson is using:
Build type: native buildProject name: matplotlibProject version: 3.9.0.dev0C compiler for the host machine: cc (gcc 7.2.0"cc (Rev1, Built by MSYS2 project) 7.2.0")C linker for the host machine: cc ld.bfd 2.29.1C++ compiler for the host machine: c++ (gcc 7.2.0"c++ (Rev1, Built by MSYS2 project) 7.2.0")C++ linker for the host machine: c++ ld.bfd 2.29.1
Ourdependencies documentation lists the minimum headerversion if you intended to useMSYS2
. If you intended to useMSVC
thenyou may need to force Meson touse MSVC.