When the below statement is executed
out1 = subprocess.run("module load python",shell = True, stdout = subprocess.PIPE , stderr = subprocess.STDOUT)
This error is generated.
/bin/sh: module :command not found.
I want to execute shell commands using a python script and this above statement is not working , but when I execute the same statement on the shell then it is working fine and no error is generated.