I want to install acefile for a tool that require it but after trying to install it through it from pip command,i got the following error
sudo pip3 install acefile
Collecting acefile
Downloading https://files.pythonhosted.org/packages/17/30/dc13a57fafcbc830ca853ba6b9fdd4cf70eff3d0bd372bd1b8e5386b4a2a/acefile-0.6.12.tar.gz (49kB)
100% |████████████████████████████████| 51kB 174kB/s
Building wheels for collected packages: acefile
Building wheel for acefile (setup.py) ... error
Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-ig_se37r/acefile/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /tmp/pip-wheel-8z0s4xa_ --python-tag cp37:
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.7
copying acefile.py -> build/lib.linux-x86_64-3.7
running build_ext
building 'acebitstream' extension
creating build/temp.linux-x86_64-3.7
creating build/temp.linux-x86_64-3.7/c
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 -DLITTLE_ENDIAN_SWAP=1 -I/usr/include/python3.7m -c c/acebitstream_mod.c -o build/temp.linux-x86_64-3.7/c/acebitstream_mod.o
c/acebitstream_mod.c:37:10: fatal error: Python.h: No such file or directory
#include <Python.h>
^~~~~~~~~~
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
----------------------------------------
**Failed building wheel for acefile**
Running setup.py clean for acefile
Failed to build acefile
Installing collected packages: acefile
Running setup.py install for acefile ... error
Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-ig_se37r/acefile/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-iu4msa37/install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.7
copying acefile.py -> build/lib.linux-x86_64-3.7
running build_ext
building 'acebitstream' extension
creating build/temp.linux-x86_64-3.7
creating build/temp.linux-x86_64-3.7/c
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 -DLITTLE_ENDIAN_SWAP=1 -I/usr/include/python3.7m -c c/acebitstream_mod.c -o build/temp.linux-x86_64-3.7/c/acebitstream_mod.o
c/acebitstream_mod.c:37:10: fatal error: Python.h: No such file or directory
#include <Python.h>
^~~~~~~~~~
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-ig_se37r/acefile/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-iu4msa37/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-install-ig_se37r/acefile/emphasized text**
pls help me to fix this:upside_down_face: