How can i totally uninstall pytorch ? And why the output of torch.__file__ is None

I want to uninstall pytorch by using

conda uninstall pytorch

but after I has done this ,torch can be imort correctlly.
I use torch.file to see where is the torch,however the outcome is ‘None’.

just as
屏幕截图 2022-09-13 234056

Is your wdir set to the pytorch source directory or are you in a folder containing a torch.py file?
Also, does pip list show any PyTorch installs?

1 Like

Thank you very much.
There aren’t any torch.py files in the folder.When i try pip list ,it indicates that no torch or pytorch were installed in my computer.I will try to find anthor ways.
Thanks again.

That’s really strange. What does print(dir(torch)) return after importing it?