Problem configuring pytorch on local machine

Greetings and thanks for the help
What will be the reason that when executing a .py file it fails to import my “torch” module but if I call it directly within the python interpreter, I have no problems.
Ubuntu 20.04, and python 3.8.10

Your current file is called torch.py which could create these circular imports.
Rename it and it should work.

1 Like

Thanks a lot. I feel stupid. I think it’s a very basic error

1 Like

Ah, I think we’ve all ran into it at one point. :wink: