Requirements install problem
See original GitHub issueExpected Behavior
expect xxhash to install
Actual Behavior
recieving the following error
.replace(‘\r\n’, ‘\n’), file, ‘exec’))" install --record /tmp/pip-XCevGC-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 -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -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: 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/python -u -c “import setuptools, tokenize;file=‘/tmp/pip-build-khdMHg/xxhash/setup.py’;exec(compile(getattr(tokenize, ‘open’, open)(file).read().replace(‘\r\n’, ‘\n’), file, ‘exec’))” install --record /tmp/pip-XCevGC-record/install-record.txt --single-version-externally-managed --compile” failed with error code 1 in /tmp/pip-build-khdMHg/xxhash/
Steps to Reproduce
sudo pip install -r requirements.txt
Other Information
OS: UBUNTU Git Commit: (run ‘git log -n 1 --pretty=format:“%H”’ and paste it here) Python Version: (run ‘python -V’ and paste it here)
Issue Analytics
- State:
- Created 7 years ago
- Comments:13
Hey all,
had the same issue
Just install Microsoft Visual C++ Compiler for Python 2.7
https://www.microsoft.com/en-us/download/confirmation.aspx?id=44266
@TGM Like I already posted, it’s
python-dev