easy_installのエラー対処 on Cygwin

Cygwin上でPythonのパッケージをインストールをするため,easy_installを叩いたら以下のようなエラーがはかれた。


$ easy_install --help
Traceback (most recent call last):
File "/usr/bin/easy_install", line 5, in
from pkg_resources import load_entry_point
ImportError: No module named pkg_resources
pkg_resourcesはsetuptoolsに入っているということなので,素直に再インストール。以前入れたはずなんだけどな。。
公式サイトからeggファイルをダウンロードします。

$ wget -N http://pypi.python.org/packages/2.6/s/setuptools/setuptools-0.6c11-py2.6.egg#md5=bfa92100bd772d5a213eedd356d64086
2012-04-11 10:59:50 http://pypi.python.org/packages/2.6/s/setuptools/setuptools-0.6c11-py2.6.egg
Proxy request sent, awaiting response... 200 OK
Length: 333447 (326K) [application/octet-stream]
Saving to: `setuptools-0.6c11-py2.6.egg'
100%[===================================>] 333,447 121K/s in 2.7s
インストール

$ sh setuptools-0.6c11-py2.6.egg
Processing setuptools-0.6c11-py2.6.egg
Copying setuptools-0.6c11-py2.6.egg to /usr/lib/python2.6/site-packages
Adding setuptools 0.6c11 to easy-install.pth file
Installing easy_install script to /usr/bin
Installing easy_install-2.6 script to /usr/bin
起動できました。