-1

I received the following message every time when I execute the following import statement in Python script. How can I get rid of this error?

import matplotlib.pyplot as plt
Traceback (most recent call last):
  File "<pyshell#4>", line 1, in <module>
    import matplotlib.pyplot as plt
  File "C:\Users\WinodMD\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\matplotlib\__init__.py", line 242, in <module>
    _check_versions()
  File "C:\Users\WinodMD\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\matplotlib\__init__.py", line 236, in _check_versions
    module = importlib.import_module(modname)
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.11_3.11.1264.0_x64__qbz5n2kfra8p0\Lib\importlib\__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "C:\Users\WinodMD\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\kiwisolver\__init__.py", line 8, in <module>
    from ._cext import (
ImportError: DLL load failed while importing _cext: The specified module could not be found.
mkrieger1
  • 19,194
  • 5
  • 54
  • 65

0 Answers0