pogodevorg / pgoapi

Unofficial PokemonGO API in Python
https://pogodev.org
Other
853 stars 475 forks source link

xxhash can't be installed on ubuntu/linux #32

Closed nodueck closed 7 years ago

nodueck commented 7 years ago
Installing collected packages: xxhash, pgoapi, gpxpy, funcsigs, pbr, mock, timeout-decorator, contextlib2, raven
  Running setup.py install for xxhash ... error
    Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-aYo0F8/xxhash/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-7Xmat1-record/install-record.txt --single-version-externally-managed --compile:
    running install
    running build
    running build_ext
    building 'xxhash' extension
    creating build
    creating build/temp.linux-x86_64-2.7
    creating build/temp.linux-x86_64-2.7/xxhash
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -DVERSION=0.6.1 -I/usr/include/python2.7 -c python-xxhash.c -o build/temp.linux-x86_64-2.7/python-xxhash.o -std=c99 -O3 -Wall -W -Wundef -Wno-error=declaration-after-statement
    python-xxhash.c:31:20: fatal error: Python.h: File or Directory not found
     #include <Python.h>
                        ^
    compilation terminated.
    error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

I'm not sure, but it looks like it trys to compile a c-file.

Python Version: 2.7.9 Pip Version: 8.1.2 OS: Ubuntu x64 15.04

Dracon23 commented 7 years ago

You will need to install python-dev from your package repos... simple as that.