ModuleNotFoundError: No module named 'torch' when running shell script

Viewed 83

I'm trying to run python code through a shell script. So my .sh looks like this:

shell script

But when I run it I keep getting:

ModuleNotFoundError: No module named 'torch'

I'm running the shell script on my windows command shell using bash (I have WSL installed) and I already installed torch with pip.

proof torch is installed

So when I run the shell script with bash, this happens:

module error

No idea what's happening. I'll be very grateful recieving any kind of help :D

0 Answers
Related