title: ImportError: No module named xmltodict while calling from other Python script
body: <p>I am having a weird problem.</p>
  
  <p>I am on Py2.7 and I am calling a py file from python script. Below is my code</p>
  
  <p><strong>caller.py</strong></p>
  
  <pre><code>import os
  import subprocess    
  filename = 'file.py'
  
  data = 'aXD'
  output = subprocess.check_output(['python', filename,data], shell=False)
  </code></pre>
  
  <p><strong>file.py</strong></p>
  
  <pre><code>import sys
  import os
  import xmltodict
  
  args = sys.argv
  xml = args[1].strip('\n')
  xml = xml.strip()
  pid = str(os.getpid())
  result = {'msg':'ok',"pid":pid}
  print(result)
  </code></pre>
  
  <p>And it gives error:</p>
  
  <pre><code>    import xmltodict
  ImportError: No module named xmltodict
  Traceback (most recent call last):
  </code></pre>
  
  <p>The module is RIGHT there since the file runs perfect when executing individually.</p>