title: Compile failed with error code 1 in /tmp/pip_build_root/uwsgi
body: <p>I'm trying to follow the tutorial at <a href="http://uwsgi-docs.readthedocs.org/en/latest/tutorials/Django_and_nginx.html" rel="nofollow">http://uwsgi-docs.readthedocs.org/en/latest/tutorials/Django_and_nginx.html</a>. I've gotten everything working down tohttp://uwsgi-docs.readthedocs.org/en/latest/tutorials/Django_and_nginx.html#install-uwsgi-system-wide. I am working with an ubuntu 14.4 instance on amazon EC2:</p>
  
  <p>Without going into my virtualenv , I ran:</p>
  
  <pre><code>sudo pip install uwsgi 
  </code></pre>
  
  <p>This led to :</p>
  
  <pre><code>----------------------------------------
  Cleaning up...
  Command /usr/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip_build_root/uwsgi/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-64P2dl-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /tmp/pip_build_root/uwsgi
  Storing debug log for failure in /home/ubuntu/.pip/pip.log
  </code></pre>
  
  <p>The log has:</p>
  
  <pre><code>Cleaning up...
    Removing temporary dir /tmp/pip_build_ubuntu...
  Command /usr/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip-uLEPHb-build/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-hPh8D0-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /tmp/pip-uLEPHb-build
  Exception information:
  Traceback (most recent call last):
    File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 122, in main
      status = self.run(options, args)
    File "/usr/lib/python2.7/dist-packages/pip/commands/install.py", line 283, in run
      requirement_set.install(install_options, global_options, root=options.root_path)
    File "/usr/lib/python2.7/dist-packages/pip/req.py", line 1435, in install
      requirement.install(install_options, global_options, *args, **kwargs)
    File "/usr/lib/python2.7/dist-packages/pip/req.py", line 706, in install
      cwd=self.source_dir, filter_stdout=self._filter_install, show_stdout=False)
    File "/usr/lib/python2.7/dist-packages/pip/util.py", line 697, in call_subprocess
      % (command_desc, proc.returncode, cwd))
  InstallationError: Command /usr/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip-uLEPHb-build/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-hPh8D0-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /tmp/pip-uLEPHb-build
  </code></pre>
  
  <p>What am I doing wrong?</p>