title: Loading a virtualenv in a job file to run on linux cluster
body: <p>I'm trying to set up a job file to run on a linux cluster using </p>
  
  <pre><code>$ qsub network.job 
  </code></pre>
  
  <p>I have loaded the module needed to execute the script, however a also need to activate a virtual environment that comes with the module. </p>
  
  <pre class="lang-sh prettyprint-override"><code>#$ -S /bin/bash
  #$ -cwd
  #$ -j y
  #$ -o output/
  echo "Running job script"
  
  module load python/python3
  
  ./network.py 
  echo "Finished job script"
  </code></pre>
  
  <p>Including </p>
  
  <pre><code>$source activate machinelearning
  </code></pre>
  
  <p>does not activate the virtualenv </p>
  
  <p>What do I need to add to the file to activate the virtualenv machine learning that comes when loading the module python/python3?</p>