title: Error installing Twisted for Python
body: <p>I tried installing twisted on an Ubuntu VM like this:</p>
  
  <p>pip install twisted</p>
  
  <p>It downloads and starts installation, but gets this error:</p>
  
  <pre><code>Command "/usr/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip-build-SQhfJz/twisted/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-ItHrMV-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-SQhfJz/twisted
  </code></pre>
  
  <p>I'm not a real programmer, just a hobbyist, so this is way over my head. Googling it showed it needs python-dev and build-essential. I installed both of those, but installing twisted still got the same error as before.</p>
  
  <p>Any thoughts?</p>