Cannot import name 'as_file' from 'importlib.resources; only when using ISLP

Hello All—

I ran into a problem where just a sudden I got messages like no module named matplotlib, etc. I found out if I upgrade python from 38 to 3133 should resolve the problem. It did except now one small module(ISLP), a python implementation of some machine learning code. I get this error message, “ImportError: cannot import name ‘as file’ from ‘importlib.resources’ (c:\program files\python38\lib\importlib\resources.py)” I noticed when I use the command where python, it lists both python38 and 3133 in this order and in different folders.
Any input is greatly appreciated—EKE

I am using Windows 11 and Jupyter Lab and Notebook.
IPython : 8.4.0
ipykernel : 6.15.2
ipywidgets : 8.0.1
jupyter_client : 8.3.1
jupyter_core : 5.3.1
jupyter_server : 2.7.3
jupyterlab : 4.3.7
nbclient : 0.6.7
nbconvert : 7.0.0
nbformat : 5.4.0
notebook : 7.3.3
qtconsole : 5.3.2
traitlets : 5.10.0