easy_install with various versions of python installed, mac osx <p>I have various versions of python on a mac OSX 10.6 machine, some of them installed with macports:</p> <pre><code>&gt; python_select -l Available versions: current none python24 python26 python26-apple python27 </code></pre> <p>The default or system version is <code>python26-apple</code>. I am now using python27, which I selected with</p> <pre><code>&gt; sudo python_select python27 </code></pre> <p>I recently tried installing django using <code>easy_install</code>, but it got installed with the default python (I can check that by python_selecting python26-apple and importing django). If, instead, I download the django tarball, expand and use</p> <pre><code>&gt; sudo python setup.py install </code></pre> <p>everything works as expected, i.e. I get django in python 2.7. Now the question is, is there a way to get <code>easy_install</code> to work with the version of python I have selected with <code>python_select</code>? </p> <p><strong>UPDATE</strong> Apparently <code>python_select</code> is deprecated. The following command seems to be equivalent:</p> <pre><code>port select --list python </code></pre> <p>producing:</p> <pre><code>Available versions for python: none python24 python26 python26-apple python27 (active) </code></pre>