Error yang umum terjadi pada scrapy
Error installasi di lubuntu 20.04
Gagal menginstall scrapy dengan pesan sebagai berikut:
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.5m -c src/twisted/test/raiser.c -o build/temp.linux-x86_64-3.5/src/twisted/test/raiser.o src/twisted/test/raiser.c:4:20: fatal error: Python.h: No such file or directory compilation terminated. error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
Solusi
Untuk python 2 jalankan berikut:
sudo apt install -y python-dev sudo apt install python-pip sudo pip install scrapy
Untuk python 3 jalankan perintah berikut:
sudo apt install -y python3-dev sudo apt install python3-pip sudo pip3 install scrapy
Fullstack Developer yang tinggal di yogyakarta. Suka eksplorasi hal baru yang berhubungan dengan pemrograman dan ilmu keislaman. Berpengalaman dalam pemrograman PHP, Delphi dan sedang upgrade skill dengan python. Just as simple that.