Try to use pytorch through IDLE Shell

I am completely new with PyTorch and run into an installation issues and need some help. Thank you for reading the following:
Windows 10 Enterprise 64bit
Latest Anacoda installed
Python version is 3.9.13

I have installed Pytorch in c:\users\xxx\anaconda3\lib\site-packages
When I use Qt Console, i can import pytorch and test basic function such as torch.randn
that was good news.

However, when i test import torch in IDLE Shell (that is the only IDE i have now), i run into a problem.
Originally the python cwd was:
I run into the following error:

Traceback (most recent call last):
File “<pyshell#12>”, line 1, in
import torch
File “C:\Users\XXX\Anaconda3\lib\site-packages\”, line 223, in
for name in dir(_C):
NameError: name ‘_C’ is not defined

Then i tried to change the cwd to other empty locations, including the one used by the Qt Console. I continue to have the same error.
Anyone can suggest a solution? Thank you very much.