When I have installed matplotlib using command pip install matplotlib I have got this warning.
Blockquote
WARNING: The script f2py.exe is installed in ‘C:\Users\User\AppData\Roaming\Python\Python312\Scripts’ which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
WARNING: The scripts fonttools.exe, pyftmerge.exe, pyftsubset.exe and ttx.exe are installed in ‘C:\Users\User\AppData\Roaming\Python\Python312\Scripts’ which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
Blockquote
in cmd when I tried to import matplotlib I have got following error.
Traceback (most recent call last):
File “”, line 1, in
File “C:\Users\User\AppData\Roaming\Python\Python312\site-packages\matplotlib_init_.py”, line 276, in
check_versions()
File "C:\Users\User\AppData\Roaming\Python\Python312\site-packages\matplotlib_init.py", line 270, in check_versions
module = importlib.import_module(modname)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Python312\Lib\importlib_init.py", line 90, in import_module
return _bootstrap.gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\User\AppData\Roaming\Python\Python312\site-packages\kiwisolver_init.py", line 8, in
from ._cext import (
ImportError: DLL load failed while importing _cext: The specified module could not be found.
Blockquote