1

Believe me or not but after searching the web for half an hour I couldn't find the answer: How to install django app (ex. django-profile) to the specific python path?

The problem is I installed it with pip but it was installed on the "global" path. I don't want it. I want it to be installed in /home/usr/Dev/lib folder where my project lives.

Could you help me? Am I missing something?

Thank you!

Yulia
  • 1,575
  • 4
  • 18
  • 27
  • Yulia, I recommend you go through your previous questions and mark them answered (click the checkbox next to the post) as you've given confirmation that the answer is good on many of them. – Yuji 'Tomita' Tomita Feb 24 '11 at 21:05

2 Answers2

2

From the author of pip himself:

Install a Python package into a different directory using pip?

PREFIX_PATH=/path/to/folder
pip install --install-option="--prefix=$PREFIX_PATH" django-profile

This would install django-profile in /path/to/folder/lib/pythonX/site-packages

Community
  • 1
  • 1
Yuji 'Tomita' Tomita
  • 115,817
  • 29
  • 282
  • 245
2

With virtualenv you can customize where the django apps and python packages are installed.

Sergey Golovchenko
  • 18,203
  • 15
  • 55
  • 72