DLL issue while importing fastbook

Hi I am new to fastai, I am following the book.
I am following the fastbook repo in Jupyter notebook.
When I try to import fastbook I am getting dll error.
How do I fix this?


ImportError Traceback (most recent call last)
Cell In[4], line 1
----> 1 import fastbook

File ~\AppData\Roaming\Python\Python312\site-packages\fastbook_init_.py:2
1 version = “0.0.29”
----> 2 import matplotlib as mpl, pkgutil, requests, time
3 from fastai.vision.all import *
4 from fastdownload import download_url

File ~\AppData\Roaming\Python\Python312\site-packages\matplotlib_init_.py:276
271 if parse_version(module.version) < parse_version(minver):
272 raise ImportError(f"Matplotlib requires {modname}>={minver}; "
273 f"you have {module.version}")
→ 276 _check_versions()
279 # The decorator ensures this always returns the same handler (and it is only
280 # attached once).
281 @functools.cache
282 def _ensure_handler():

File ~\AppData\Roaming\Python\Python312\site-packages\matplotlib_init_.py:270, in _check_versions()
261 from . import ft2font # noqa: F401
263 for modname, minver in [
264 (“cycler”, “0.10”),
265 (“dateutil”, “2.7”),
(…)
268 (“pyparsing”, “2.3.1”),
269 ]:
→ 270 module = importlib.import_module(modname)
271 if parse_version(module.version) < parse_version(minver):
272 raise ImportError(f"Matplotlib requires {modname}>={minver}; "
273 f"you have {module.version}")

File C:\Program Files\Python312\Lib\importlib_init_.py:90, in import_module(name, package)
88 break
89 level += 1
—> 90 return _bootstrap._gcd_import(name[level:], package, level)

File ~\AppData\Roaming\Python\Python312\site-packages\kiwisolver_init_.py:8
1 # --------------------------------------------------------------------------------------
2 # Copyright (c) 2013-2022, Nucleic Development Team.
3 #
(…)
6 # The full license is in the file LICENSE, distributed with this software.
7 # --------------------------------------------------------------------------------------
----> 8 from ._cext import (
9 Constraint,
10 Expression,
11 Solver,
12 Term,
13 Variable,
14 kiwi_version,
15 version,
16 strength,
17 )
18 from .exceptions import (
19 BadRequiredStrength,
20 DuplicateConstraint,
(…)
24 UnsatisfiableConstraint,
25 )
27 all = [
28 “BadRequiredStrength”,
29 “DuplicateConstraint”,
(…)
41 “kiwi_version”,
42 ]

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

I fixed it with the help of ChatGpt
https://chatgpt.com/c/968884a5-8c7d-4d51-9b91-edfda5180faf