title: Installing modules without pip in python script
body: <p>I'm using AnyTree in an independent environment where there is no pip (testcomplete).</p>
  
  <p>I started by moving the anytree folders to the required folders, and started getting import error for six. I downloaded six and placed it in as well, and now I get:</p>
  
  <pre><code>'module' object has no attribute 'iterator'
  </code></pre>
  
  <p>In case anyone is interested - this is the code for doing this without pip:</p>
  
  <pre><code>from os import sys
  
  
  sys.path.insert(0, "C:\Program Files (x86)\SmartBear\TestComplete 12\Bin\Extensions\Python\Python34\Lib\site-packages")
  
  import six
  import anytree
  
  udo = anytree.Node("Udo")
  print(udo)
  </code></pre>
  
  <p>Any ideas on how to fix this?  Google only returned this result: <a href="https://stackoverflow.com/questions/25612946">__builtin__.iterator does not exist?</a></p>
  
  <p>The only two options I can think of are - moving the folders physically (tried but given the error above) or installing through a script:</p>
  
  <p>It doesn't seem to work either (on 2.7 and I tried an updated script on 3.6 but neither work).</p>
  
  <pre><code>import sys
  import os
  import site 
  from importlib import reload
  
  try:
     import pip
  except ImportError:
     print "installing pip"
     cmd = "sudo easy_install pip"
     os.system(cmd)
     reload(site)
  
  try: 
     import requests
  except ImportError:
     print "no lib requests"
     import pip
     cmd = "sudo pip install requests"
     print "Requests package is missing\nPlease enter root password to install required package"
     os.system(cmd)
     reload(site)
  </code></pre>