title: twisted.web not found when importing
body: <p>I was trying to run the following python codes in Ubuntu server 13.0 and python 2.7</p>
  
  <pre><code>from twisted.python.log import err
  from twisted.web.client import Agent
  from twisted.internet import reactor
  from twisted.internet.ssl import ClientContextFactory
  from twisted.web.http_headers import Headers
  from stringproducer import StringProducer
  class WebClientContextFactory(ClientContextFactory):
      def getContext(self, hostname, port):
          return ClientContextFactory.getContext(self)
  
  def display(response):
      print "Received response"
      print response
  
  def main():
      contextFactory = WebClientContextFactory()
      agent = Agent(reactor, contextFactory)
  
  
      d = agent.request("POST", "https://myweburl");
  
  
      d.addCallbacks(display, err)
      d.addCallback(lambda ignored: reactor.stop())
      reactor.run()
  
  if __name__ == "__main__":
      main()
  </code></pre>
  
  <p>when i tried to run it, it gave me the following error:</p>
  
  <pre><code>ImportError: No module named twisted.web.client
  </code></pre>
  
  <p>I had tried it in the python console and twisted.internet works, but not twisted.web. Anyone has any advice how to deal with such problem?</p>
  
  <p>Thanks</p>