Skip to content

Instantly share code, notes, and snippets.

@benlk
Last active August 29, 2015 14:16
Show Gist options
  • Save benlk/307ba72d42aaad6ceeb6 to your computer and use it in GitHub Desktop.
Save benlk/307ba72d42aaad6ceeb6 to your computer and use it in GitHub Desktop.
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