title: I'm getting an error "module not found " when I'm trying to execute shell commands through a python script
body: <p>When the below statement is executed </p>
  
  <p><code>out1 = subprocess.run("module load python",shell = True, stdout = subprocess.PIPE , stderr = subprocess.STDOUT)</code></p>
  
  <p>This error is generated.</p>
  
  <blockquote>
    <p>/bin/sh: module :command not found.</p>
  </blockquote>
  
  <p>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.</p>