MattShannon / bandmat

A banded matrix library for python.
Other
26 stars 9 forks source link

Unable to install bandmat #14

Open baniyacoder opened 3 years ago

baniyacoder commented 3 years ago

I have installed all the requirements to install bandmat also i have installed python3.6 version and everything works fine but when i use pip install bandmat i get this error ERROR: Command errored out with exit status 1: command: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-0s5d16v0/bandmat/setup.py'"'"'; file='"'"'/tmp/pip-install-0s5d16v0/bandmat/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-3v1f1rhm/install-record.txt --single-version-externally-managed --user --prefix= --compile --install-headers /home/hacker/.local/include/python3.6m/bandmat cwd: /tmp/pip-install-0s5d16v0/bandmat/ Complete output (25 lines): running install running build running build_py creating build creating build/lib.linux-x86_64-3.6 creating build/lib.linux-x86_64-3.6/bandmat copying bandmat/test_overlap.py -> build/lib.linux-x86_64-3.6/bandmat copying bandmat/test_tensor.py -> build/lib.linux-x86_64-3.6/bandmat copying bandmat/testhelp.py -> build/lib.linux-x86_64-3.6/bandmat copying bandmat/init.py -> build/lib.linux-x86_64-3.6/bandmat copying bandmat/test_full.py -> build/lib.linux-x86_64-3.6/bandmat copying bandmat/test_misc.py -> build/lib.linux-x86_64-3.6/bandmat copying bandmat/test_testhelp.py -> build/lib.linux-x86_64-3.6/bandmat copying bandmat/test_core.py -> build/lib.linux-x86_64-3.6/bandmat copying bandmat/test_linalg.py -> build/lib.linux-x86_64-3.6/bandmat running build_ext building 'bandmat.full' extension creating build/temp.linux-x86_64-3.6 creating build/temp.linux-x86_64-3.6/bandmat x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fdebug-prefix-map=/build/python3.6-t1GNlY/python3.6-3.6.14=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/home/hacker/.local/lib/python3.6/site-packages/numpy/core/include -I/usr/include/python3.6m -c bandmat/full.c -o build/temp.linux-x86_64-3.6/bandmat/full.o -O3 bandmat/full.c:8:10: fatal error: pyconfig.h: No such file or directory 8 | #include "pyconfig.h" | ^~~~ compilation terminated. error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

ERROR: Command errored out with exit status 1: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-0s5d16v0/bandmat/setup.py'"'"'; file='"'"'/tmp/pip-install-0s5d16v0/bandmat/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-3v1f1rhm/install-record.txt --single-version-externally-managed --user --prefix= --compile --install-headers /home/hacker/.local/include/python3.6m/bandmat Check the logs for full command output

what should i do to install this package