WebFaction
Community site: login faq

0 down vote favorite

I am trying to setup my project on web-fraction . My project using some external packages and when I installed them using pip they got installed in root lib dir i.e., $HOME/bin but my project is using python inside my app i.e., $HOME/webapp/app/bin . Now I simply wants that I can able to install packages inside my app i.e., inside webapp . I have used one command for this but that doesn't work :

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

I have used this command too , but it is giving some syntex error in package but its not right because package is installed using pip and simple easy_install on my local (easy_install django-geoposition)

PYTHONPATH=/home/rishi/webapps/djangotest/lib/python3.4 easy_install --install-dir=/home/rishi/webapps/djangotest/lib/python3.4 --script-dir=/home/rishi/webapps/djangotest/bin django-geoposition

I have read webfraction docs but I didn't get it right . So please tell me the steps how I can install packages inside webapp .

asked 28 Aug '14, 07:21

neerajd
13
accept rate: 0%

edited 28 Aug '14, 07:34


Neerajd, yesterday I posted a question not related to this, but in the steps I followed you can see how I installed a virtualenv in python 3.4 within my django's folder, and installing everything there via pip.

Post

Screenshot from my SSH console.

Hope this help.

permanent link

answered 28 Aug '14, 09:04

davidvld
41116
accept rate: 0%

Thanks for sharing this solution with me. I was too thinking about the virtual env but I was just wondering why I can't able to install packages at webapp. And your answer is not exactly what I asked but still that was really helpful and I appreciate the way you explain each and every step.

Thanks a lot

(28 Aug '14, 09:55) neerajd

You are welcome

(28 Aug '14, 11:06) davidvld
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
×113

question asked: 28 Aug '14, 07:21

question was seen: 1,660 times

last updated: 28 Aug '14, 11:06

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