I write this
import matplotlib.pyplot as plt
x = [1, 2, 3, 4]
y = [10, 20, 25, 30]
plt.plot(x, y)
plt.xlabel('X-axis')
plt.ylabel('Y-axis')
plt.title('Simple Plot')
plt.show()
But an issue has arisen that I don’t understand.
Is there a bug in the software or is it in the library?
Traceback (most recent call last):
File "c:UsersDELLOneDriveDocumentspython projecttrying.py", line 12, in <module>
import matplotlib.pyplot as plt
File "C:UsersDELLAppDataRoamingPythonPython312site-packagesmatplotlib__init__.py", line 276, in <module>
_check_versions()
File "C:UsersDELLAppDataRoamingPythonPython312site-packagesmatplotlib__init__.py", line 270, in _check_versions
module = importlib.import_module(modname)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:Program FilesPython312Libimportlib__init__.py", line 90, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:UsersDELLAppDataRoamingPythonPython312site-packageskiwisolver__init__.py", line 8, in <module>
from ._cext import (
ImportError: DLL load failed while importing _cext: Le module spécifié est introuvable.
I reloaded matplotlib and kiwisolver
but nothing changed
New contributor
PC Imane is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.