WebFaction
Community site: login faq

Ok, so I'm working with the docs at: http://docs.webfaction.com/software/python.html#installing-packages-with-pip

I already had them correct it once, the word install was missing after pip-X.Y. This tells me that not many people actually use pip. When I tried to install an app into one of my existing app directories it ended up in my home directories. As far as I know, there's no equivalent for the --install-dir option and I'm not sure if a --script-dir type option would be necessary either, as there are for easy_install.

Anyway, has anyone successfully used pip to install into an app directory?

asked 12 Jul '11, 19:56

Rupe
411814
accept rate: 0%

edited 12 Jul '11, 19:59


This should work, given "foo" as your app name, "bar" as your package name, and assuming you've installed pip with "easy_install-2.7 pip":

cd ~/webapps/foo
pip install --install-option="--install-scripts=$PWD/bin" --install-option="--install-lib=$PWD/lib/python2.7" bar

Hope that helps!

permanent link

answered 12 Jul '11, 20:05

seanf
12.2k31836
accept rate: 37%

that did it, do you want to submit the ticket to fix the docs, or should I ;o)

(12 Jul '11, 20:16) Rupe

Actually, by your avatar it appears you're an employee. I bet you can take care of it, yes?

(12 Jul '11, 20:21) Rupe

Ticket submitted.

(12 Jul '11, 20:37) johns

We'll add something to our docs soon. You can also use "pip help install" to get the same information.

(13 Jul '11, 20:40) seanf

Wow, what a PITA

(15 Nov '11, 19:39) redseam

This only works if you don't already have the package installed via pip at ~/home/YOURUSER/lib/python2.7/. It seems that pip sees that and says the requirement is already satisfied.

(03 Oct '14, 17:39) teewuane
(04 Oct '14, 19:22) tiarno
showing 5 of 7 show 2 more comments
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
×102
×53

question asked: 12 Jul '11, 19:56

question was seen: 4,295 times

last updated: 04 Oct '14, 19:22

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