question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Requirements install problem

See original GitHub issue

Expected 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:closed
  • Created 7 years ago
  • Comments:13

github_iconTop GitHub Comments

3reactions
phoenix98787commented, Aug 7, 2016

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

0reactions
ferbebcommented, Aug 9, 2016

@TGM Like I already posted, it’s python-dev

Read more comments on GitHub >

github_iconTop Results From Across the Web

Errors while running pip install -r requirements.txt - MongoDB
Hi,. I have same problem when I run the command in virtualenv in Window Command Prompt. (mflix_venv) C:\Program Files\MongoDB\M220P\mflix-python ...
Read more >
I am running into errors installing a requirements.txt. The issue ...
One of the steps in working with the code is to install python dependencies via a requirements.txt. I am currently running into errors...
Read more >
pip install -r requirements.txt fails · Issue #3 · deepmind/dqn_zoo
I created a new virtual environment and immediately tried to install the requirements, but ran into a version error: pip install -r ...
Read more >
Python Error Installing Requirements.txt Using Pip Install
This quick article will be show you how to solve error during pip install of requirements.txt: pip install requirements.txt and the error: ERROR:...
Read more >
Could not find a version that satisfies the requirement X
The error "Could not find a version that satisfies the requirement" is often caused when you try to install a package using an...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found