title: Issue with importError: no module named BaseHTTPServer
body: <p>Learning Python 2.7 and trying to run it on Vagrant. </p>
  
  <p>Steps taken:
  Vagrant up
  Vagrant ssh
  Run command python webserver.py</p>
  
  <p>Issue when I run this command, it gives out an ImportError: No module named BaseHTTPServer.  Is this problem related to pg_config.sh?  Thank you in advance for helping me understand.</p>
  
  <p>I have checked my python 2.7 directory.  BaseHTTPServer.py seems to be there.  </p>
  
  <pre><code>from BaseHTTPServer import BaseHTTPRequestHandler, BaseHTTPServer
  
  
  
  class WebServerHandler(BaseHTTPRequestHandler):
  
  def do_Get(self):
      if self.path.endswith("/hello"):
          self.send_response(200)
          self.send_header('Content-type', 'text/html')
          self.end_header()
          message = ""
          message += "&lt;html&gt;&lt;body&gt;Hello!&lt;/body&gt;&lt;/html&gt;"
          self.wfile.write(message)
          print message
          return
      else:
          self.send_error(404,'File Not Found: %s' % self.path)
  
  
  def main():
  try:
      port = 8080
      server = HTTPServer(('', port), WebServerHandler)
      print "Web Server running on port %s" % port
      server.serveforever()
  except KeyboardInterrupt:
      print " ^C entered, stopping web server...."
      server.socket.close()
  
  if _name_ == '__main__':
  main()
  </code></pre>