0

Using Mac OS X v 10.6.7 Django 1.3 Python 2.5

I am trying to run setup.py and install Django to the /Library/Python/2.5 version of Python. By default it installs in the 2.6 folder. Need to re-direct.

Thanks, Harry

1
  • 1
    Is there any specific reason why you are using the ancient Python 2.5? There are a lot of nice things in 2.6, e.g. with. Commented Mar 24, 2011 at 14:28

2 Answers 2

1

I see that you are trying to change the default install path from system python to a different python version. In that case, have you considered virtualenv?

You can install virtualenv by running

pip install virtualenv

It is much cleaner and much easier to manage as the number of projects and their dependencies grow.

Sign up to request clarification or add additional context in comments.

3 Comments

yes and virtual environment wrapper is nice, I use it on my mac as well. jamiecurle.com/posts/…
And a better example with virtualenv and mac ports - insomnihack.com/?p=421
sudo python setup.py install --home=/Library/Python/2.5 This worked, thanks.
1

Found it:

sudo python setup.py install --home=/Library/Python/2.5

Works for Mac OS X

Courtesy of http://docs.python.org/release/2.2/inst/inst.html

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.