ImportError: DLL load failed while importing _path: The specified module could not be found

Hey,

They changed the machines from where I work and I’m installing everything again. But I’m having trouble with matplotlib, it installs ok (installed through pip) but when I run the script it raises this error:

 from matplotlib._path import (
ImportError: DLL load failed while importing _path: The specified module could not be found

I tried updating matplot and uninstalling and reinstalling it, but it didn’t work.
I’m using python 3.11.0 and windows 11.

Unfortunately based on this information it is very hard to provide useful advice.

I would check to make sure that the Python you ran pip with and the Python you ran your script with is the same Python.

I strongly suggest using conda (and the conda-forge channel) to provide a coherent environment.