title: Package not importing when invoking Python script remotely
body: <p>We have a python 2.7 script that executes LOCALLY perfectly fine. </p>
  
  <p>The problem occurs ONLY when I attempt to invoke the script remotely (SSH):</p>
  
  <pre><code>ssh user@server "python script.py"
  
  *Traceback (most recent call last):
  File "script.py", line 18, in &lt;module&gt;
      import requests
  ImportError: No module named requests*
  </code></pre>
  
  <p>After doing a little bit of research, I have tried manually inserting the absolute the path to the "requests" library using sys.path.insert before importing the library:</p>
  
  <pre><code>sys.path.insert(1,'/usr/local/lib/python2.7/site-packages/requests-2.10.0-py2.7.egg')
  import requests
  </code></pre>
  
  <p>I even confirmed the path to the package got added succesfully by printing the sys.path when invoking the script remotely:</p>
  
  <pre><code>print '\n'.join(sys.path)
  </code></pre>
  
  <p>Result:</p>
  
  <pre><code>/usr/local/lib/python2.7/site-packages/setuptools-20.9.0-py2.7.egg
  /usr/local/lib/python2.7/site-packages/requests-2.10.0-py2.7.egg
  /usr/local/lib/python27.zip
  /usr/local/lib/python2.7
  /usr/local/lib/python2.7/plat-linux2
  /usr/local/lib/python2.7/lib-tk
  /usr/local/lib/python2.7/lib-old
  /usr/local/lib/python2.7/lib-dynload
  /usr/local/lib/python2.7/site-packages
  </code></pre>
  
  <p>However, I am still getting the "ImportError: No module named requests" no matter what.</p>
  
  <p>Can you help me understand what am I missing?</p>
  
  <p>Again, this script does find the library without issue and runs perfectly fine when I execute the script locally.</p>
  
  <p>Thanks!</p>