title: Why does Jenkins not recognize a module which works on the same version of python on my local machine?
body: <p>I have a script which works fine on the terminal. I'm trying to tie it to a jenkins job, which essentially only needs to run the python script. So I've written a little shell command at the bottom which calls the script.</p>
  
  <p>However, when it runs, it throws the following error: </p>
  
  <pre><code>ImportError: No module named request
  </code></pre>
  
  <p>It's coming from this line:</p>
  
  <pre><code>import urllib.request
  </code></pre>
  
  <p>I've tried changing the shebang from python2.7 to python3, but then I get the same error but for the pkg_resources module, which sits right below the first one.</p>
  
  <pre><code>import urllib.request
  from pkg_resources import parse_version
  </code></pre>
  
  <p>Seems like it should be an easy fix but it's not so far. Does anyone know what I need to do to get Jenkins to recognize these python modules? Again, no problems importing either of these modules on my Terminal.</p>