Yulia
Yulia

Reputation: 1585

python path for setting Django app

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!

Upvotes: 1

Views: 388

Answers (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

Upvotes: 2

Sergey Golovchenko
Sergey Golovchenko

Reputation: 18661

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

Upvotes: 2

Related Questions