WebFaction
Community site: login faq

When I use a pip requirements file to install new packages, even those that are up-to-date are downloaded and reinstalled. I'm following WebFaction's instructions for Installing Packages with Pip:

$ cd ~/webapps/myapp
$ pip-2.7 install --target=$PWD/lib/python2.7 --install-option="--install-scripts=$PWD/bin" -r requirements.txt

I get the feeling that pip isn't seeing the packages already installed. I also unsuccessfully tried setting the PYTHONPATH to help it:

$ PYTHONPATH=$PWD/lib/python2.7 pip-2.7 install --target=$PWD/lib/python2.7 --install-option="--install-scripts=$PWD/bin" -r requirements.txt

How can I get it to only download and install those packages where the requirement is not satisfied?

asked 25 Apr '14, 01:56

mikey
6539
accept rate: 0%


First, upgrade your pip installation to the latest version:

pip install -U pip

Then, try installing your requirements like this:

pip2.7 install --user -r requirements.txt --no-use-wheel

We may be updating our docs to use this syntax, so please do come back here to let us know the result. Thanks!

permanent link

answered 25 Apr '14, 19:55

seanf
12.2k42136
accept rate: 37%

Adding the --user and --no-use-wheel flags did not make a difference. Pip is still downloading and installing satisfied requirements. Here's the complete command I ran: pip2.7 install --user --target=$PWD/lib/python2.7 --install-option="--install-scripts=$PWD/bin" -r requirements.txt --no-use-wheel

(30 Apr '14, 17:03) mikey

Did you try running the command exactly as I showed it?

(01 May '14, 01:18) seanf
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:

×54

question asked: 25 Apr '14, 01:56

question was seen: 4,796 times

last updated: 01 May '14, 01:18

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2020 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