no modulo names torch after installed using pip

Viewed 19

Hi, i am very confused about this. i used pip to install torch 1.12 but when i import torch in a python console it says no such modulo. Can anyone help me ? the link is a screenshot which you can see that if i use "pip3 show torch", it says i have torch1.12 installed. However, i still cannot import torch https://i.stack.imgur.com/YLYqx.png

1 Answers

Instead of using python <filename>.py, You need to use py <filename>.py. Works for me.

Demonstration using python enter image description here See how it's giving me an error.

Using py It's working!

Related