Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install error on ubuntu 14.04 #402

Closed
mgruen opened this issue Apr 10, 2016 · 1 comment
Closed

Install error on ubuntu 14.04 #402

mgruen opened this issue Apr 10, 2016 · 1 comment

Comments

@mgruen
Copy link

mgruen commented Apr 10, 2016

Forgive me if this is a basic mistake, but I've checked everything I can think of -
apt-get update and upgrade as of 2016.04.10

root@:~# python
Python 2.7.6 (default, Jun 22 2015, 17:58:13)
[GCC 4.8.2] on linux2

(tried running as sudo as well)

apparently Python.h is not found:

gevent/gevent.corecext.c:5: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


Failed building wheel for gevent
Running setup.py clean for gevent


greenlet.h:8: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


Failed building wheel for greenlet
Running setup.py clean for greenlet
Failed to build gevent greenlet


In file included from greenlet.c:5:0:
greenlet.h:8: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-3ZBScO/greenlet/setup.py';exec(compile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), file, 'exec'))" install --record /tmp/pip-1AorDe-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-3ZBScO/greenlet/

@cjsimpson
Copy link

It sounds like you don't have the python dev package isntalled.
You could try running this:
sudo apt-get install python-dev

And then installing locust as normal.

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

No branches or pull requests

3 participants