I am trying to install scrapy. Upon receiving the error:
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.6m -c src/twisted/test/raiser.c -o build/temp.linux-x86_64-3.6/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
----------------------------------------
Command "/usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-8nvpkc0u/Twisted/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-0rgdesq0/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-install-8nvpkc0u/Twisted/
I have followed instructions from certain links and installed:
sudo pip install -U setuptools
sudo pip install -U wheel
Even then, I am getting the same error. In order to make this work, I tried to install Twisted since it is the package causing the hindrance. So
the command sudo pip3 install twisted
failed with the same aforementioned error code.