Skip to content
This repository has been archived by the owner on Feb 22, 2020. It is now read-only.

error while installing using pip #281

Closed
shubham162019 opened this issue Sep 24, 2019 · 2 comments
Closed

error while installing using pip #281

shubham162019 opened this issue Sep 24, 2019 · 2 comments

Comments

@shubham162019
Copy link

shubham162019 commented Sep 24, 2019

While installing gnes using pip install gnes:

I get the following file missing error with the latest release. What could be the posiible reasons?

building 'gnes.indexer.chunk.bindexer.cython' extension
creating build/temp.linux-x86_64-3.5
creating build/temp.linux-x86_64-3.5/gnes
creating build/temp.linux-x86_64-3.5/gnes/indexer
creating build/temp.linux-x86_64-3.5/gnes/indexer/chunk
creating build/temp.linux-x86_64-3.5/gnes/indexer/chunk/bindexer
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 gnes/indexer/chunk/bindexer/bindexer.c -o build/temp.linux-x86_64-3.5/gnes/indexer/chunk/bindexer/bindexer.o -O3 -g0
gnes/indexer/chunk/bindexer/bindexer.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-75yi68kt/gnes/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-2wvrek1d/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-install-75yi68kt/gnes/

@hanxiao
Copy link
Collaborator

hanxiao commented Sep 24, 2019

your build environment is incomplete, gcc, header files are missing.

please refer the installation steps described in one of our Dockerfiles

@hanxiao hanxiao closed this as completed Sep 24, 2019
@shubham162019
Copy link
Author

just for information if anyone else gets the same error one can run this command in linux :

sudo apt-get install build-essential libssl-dev libffi-dev python3-dev

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants