Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>The most popular way to manage python packages (if you're not using your system package manager) is to use setuptools and easy_install. It is probably already installed on your system. Use it like this:</p> <pre><code>easy_install django </code></pre> <p>easy_install uses the <a href="http://pypi.python.org" rel="noreferrer">Python Package Index</a> which is an amazing resource for python developers. Have a look around to see what packages are available.</p> <p>A better option is <a href="http://pypi.python.org/pypi/pip" rel="noreferrer">pip</a>, which is gaining traction, as it attempts to <a href="http://www.b-list.org/weblog/2008/dec/14/packaging/" rel="noreferrer">fix a lot of the problems</a> associated with easy_install. Pip uses the same package repository as easy_install, it just works better. Really the only time use need to use easy_install is for this command:</p> <pre><code>easy_install pip </code></pre> <p>After that, use:</p> <pre><code>pip install django </code></pre> <p>At some point you will probably want to learn a bit about <a href="http://pypi.python.org/pypi/virtualenv" rel="noreferrer">virtualenv</a>. If you do a lot of python development on projects with conflicting package requirements, virtualenv is a godsend. It will allow you to have completely different versions of various packages, and switch between them easily depending your needs.</p> <p>Regarding which python to use, sticking with Apple's python will give you the least headaches, but If you need a newer version (Leopard is 2.5.1 I believe), I would go with the <a href="http://trac.macports.org/browser/trunk/dports/lang/python26/Portfile" rel="noreferrer">macports</a> python 2.6.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload