MacにPython, Distribute, virtualenv(, pip)をインストールしたよ
Pythonをインストールする
$ sudo port install python26 $ sudo port install python_select $ sudo python_select python26
Distributeをインストールする
Distribute is a fork of the Setuptools project.
http://packages.python.org/distribute
「エキスパートPythonプログラミング」を見るまで存在を知りませんでした><
$ curl -O http://python-distribute.org/distribute_setup.py $ sudo python distribute_setup.py
virtualenvをインストールする
virtualenv is a tool to create isolated Python environments.
http://virtualenv.openplans.org/
$ sudo easy_install virtualenv
pipはインストールされている
pip installs Python packages.
http://pip.openplans.org/
pipはvirtualenv環境で使えるようになっているので、自分でインストールする必要は(多分)ありません。
$ pip --version -bash: pip: command not found $ virtualenv ENV $ source ENV/bin/activate (ENV)$ pip --version pip 0.8.1 from /Users/bojovs/Desktop/ENV/lib/python2.6/site-packages/pip-0.8.1-py2.6.egg (python 2.6)