Create a gist now

Instantly share code, notes, and snippets.

@benlk /README.md
Last active Aug 29, 2015

What would you like to do?
if `pip install tarbell` fails with a message about gnureadline on Ubuntu

If pip install tarbell fails with an error that looks like this:

Command "/home/benlk/.virtualenvs/gene-wolfe/bin/python -c "import setuptools,
tokenize;__file__='/tmp/pip-build-pJSsCN/gnureadline/setup.py';exec(compile(getattr(
tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))"
install --record /tmp/pip-WluX7C-record/install-record.txt --single-version-externally-managed
--compile --install-headers /home/benlk/.virtualenvs/gene-wolfe/include/site/python2.7" 
failed with error code 1 in /tmp/pip-build-pJSsCN/gnureadline

You probably don't have the development headers for linbncurses

On Ubuntu 14.04, the solution is this:

sudo apt-get install libncurses5-dev

Once that installs, feel free to run

pip install tarbell

This may not be your ownly problem, so check out the chat room #python on Freenode. They helped me solve this problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment