WebFaction
Community site: login faq
0
1

Hi all, in the guide is explained how to install packages in the webapp lib folder, but how to uninstall and freeze from that folder?

I can install easily in this way:

$ cd webapp_dir
$ pip-2.7 install --install-option="--install-script=$PWD/bin" --install-option="--install-lib=$PWD/lib/python2.7" PACKAGE

But how is possible to uninstall the package or just freeze and get the list of packages installed in the webapp dir?

I really need to work on the webapp dir because from a django installation to another I use different version of packages.

Thanks

asked 07 Jun '13, 02:03

Karim
122
accept rate: 0%


Just set your PYTHONPATH to point to your app's lib/python2.7 directory, eg:

cd ~/webapps/app
export PYTHONPATH=$PWD/lib/python2.7
pip list
pip uninstall PACKAGE

Hope that helps!

permanent link

answered 07 Jun '13, 17:34

seanf
12.2k41836
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:

×909
×54

question asked: 07 Jun '13, 02:03

question was seen: 2,582 times

last updated: 07 Jun '13, 17:34

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