I just bought a raspberry pi 2. I want to run some python scripts on it. When it asked me which operating system to install I believe I chose debian. This OS appears to have python already installed. 2.7 and 3. I have tried a large number of things to try to install scrapy, but it always fails. It fails at:
Compile failed: command 'arm-linux-gnueabihf-gcc' failed with exit status 1
/tmp/easy_install/-WZYRhq/lxml-3.5.0/temp/xmlXPathInitXlkHzS.c:1:25: fatal error: libxml/xpath.h No such file or directory.
compilation terminated
Could not find function xmlCheckVersion in library libxml2. Is libxml2 installed?
error: Setup script exited with error: command 'arm-linux-gnueabihf-gcc' failed with exit status 1.
I have downloaded the scrapy zip file from their website and unpacked it, and run their installer by typing:
sudo python setup.py install
I have tried using pip to install libxml2, but this did not fix anything. In fact it said that no distributions at all found for libxml2, and the error still occurs.
Any clue what's happening here?