WebFaction
Community site: login faq

I'm trying to install a python package (psiturk) using pip, and I'm getting the following error:

Command "/usr/local/bin/python2.7 -c "import setuptools, tokenize;file='/tmp/pip-build-6SE2mO/gnureadline/setup.py';exec(compile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), file, 'exec'))" install --record /tmp/pip-ue8fYF-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-6SE2mO/gnureadline

I looked into it a bit and found that I needed to install another package (libncurses). I tried to install that package, but in tracking down the dependencies ran into another error:

error: can't create transaction lock on /var/lib/rpm/.rpm.lock (Permission denied)

This apparently stems from the fact that I can't install an rpm as sudo. Is there a way around this?

asked 03 Aug '15, 19:23

jzhou
11
accept rate: 0%


You'll have to build libncurses from source in your home directory, and then set environment variables and compiler flags so that pip will be able to locate the library in your home directory.

Generic instructions are available here: Installing Software From Source

Hope that helps!

permanent link

answered 03 Aug '15, 19:33

seanf
12.2k42136
accept rate: 37%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×337
×108
×8

question asked: 03 Aug '15, 19:23

question was seen: 2,152 times

last updated: 03 Aug '15, 19:33

                              
WEBFACTION
REACH US
SUPPORT
LEGAL
© COPYRIGHT 2003-2021 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM