How to install Scrapy on Amazon Linux AMI
<p>I want to use <a href="http://scrapy.org/" rel="nofollow noreferrer">Scrapy</a> which is a crawler framework, and install it to my Server.</p>

<p>This is my Server spec.</p>

<p>========================================================</p>

<p>NAME="Amazon Linux AMI"</p>

<p>VERSION="2015.09"</p>

<p>ID="amzn"</p>

<p>ID_LIKE="rhel fedora"</p>

<p>VERSION_ID="2015.09"</p>

<p>PRETTY_NAME="Amazon Linux AMI 2015.09"</p>

<p>ANSI_COLOR="0;33"</p>

<p>CPE_NAME="cpe:/o:amazon:linux:2015.09:ga"</p>

<p>HOME_URL="http://aws.amazon.com/amazon-linux-ami/"</p>

<p>Amazon Linux AMI release 2015.09</p>

<p>========================================================</p>

<p>I have read a lot of web pages about this and followed the steps.
Still I always get an error.</p>

<p>I've used the command <code>sudo pip install scrapy</code> and I get this log.</p>

<p><a href="https://i.stack.imgur.com/6ZJrW.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/6ZJrW.png" alt="enter image description here"></a></p>

<p>This is red logs.</p>

<pre><code>-&gt; Failed building wheel for lxml

-&gt; Command "/usr/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip-build-lT29Ha/lxml/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-WTCmji-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-lT29Ha/lxml
</code></pre>

<p>I've spent 2 days on the Scrapy install. Please help me.</p>