Tente instalar os pacotes python-dev, libffi-dev, libssl-dev, libxml2-dev e libxslt1-dev. Quando estes estiverem instalados, pip install scrapy
funcionará bem.
sudo apt-get install python-dev libffi-dev libssl-dev libxml2-dev libxslt1-dev
sudo pip install scrapy