While installing Scrapy (Python Crawl) you may get errors like below
1. src/lxml/lxml.etree.c:16:20: fatal error: Python.h: No such file or directory
#include "Python.h"
2. Setup script exited with error: command 'gcc' failed with exit status 1
3. fatal error: openssl/aes.h: No such file or directory
#include <openssl/aes.h>
4. c/_cffi_backend.c:13:17: fatal error: ffi.h: No such file or directory
#include <ffi.h>
Above errors are problems of dependences while installing Scrapy
to avoid these error you need to install following packages (assuming you already have python2 and python3)
Note : based on distribution some times -devel work otherwise try -dev
example if python3-devel error then try python3-dev
install gcc
install python-devel
install python3-devel
install libevent-devel
install python3-setuptools (Optional)
install python-setuptools
install openssl
install libxslt-devel (if libxslt-devel error then try libxslt1-devel)
install libxml2-devel
install libffi-devel
install libssl-dev (if libssl-dev error then try openssl-devel)
Finally to install Scrapy
easy_install scrapy
1. src/lxml/lxml.etree.c:16:20: fatal error: Python.h: No such file or directory
#include "Python.h"
2. Setup script exited with error: command 'gcc' failed with exit status 1
3. fatal error: openssl/aes.h: No such file or directory
#include <openssl/aes.h>
4. c/_cffi_backend.c:13:17: fatal error: ffi.h: No such file or directory
#include <ffi.h>
Above errors are problems of dependences while installing Scrapy
to avoid these error you need to install following packages (assuming you already have python2 and python3)
Note : based on distribution some times -devel work otherwise try -dev
example if python3-devel error then try python3-dev
install gcc
install python-devel
install python3-devel
install libevent-devel
install python3-setuptools (Optional)
install python-setuptools
install openssl
install libxslt-devel (if libxslt-devel error then try libxslt1-devel)
install libxml2-devel
install libffi-devel
install libssl-dev (if libssl-dev error then try openssl-devel)
Finally to install Scrapy
easy_install scrapy
Thank you for sharing such a wonderful Information !!
ReplyDeleteHere is a list of Top LINUX INTERVIEW QUESTIONS
Veritas Cluster Interview Questions
Redhat Cluster Suite Commands
SAMBA Server Interview Questions
Linux FTP vsftpd Interview Questions
SSH Interview Questions
Apache Interview Questions
Nagios Interview questions
IPTABLES Interview Questions
Ldap Server Interview Questions
LVM Interview questions
Sendmail Server Interview Questions
YUM Interview Questions
NFS Interview Questions
Tcpdump Command Examples & Usages
Example of YUM Commands
Read More at :- Linux Troubleshooting
I got this kind of information which I was looking for, I am feeling very happy after getting this type of information, for which many thanks You should know about USA VPS Hosting and how it can be important for this modern world. Thanks once again.
ReplyDeleteBuy Best USA VPS Server Hosting at Cheap & Free Support - Online Servers
https://onliveserver.com