$uname -a Linux oneshotlife 3.5.0-17-generic #28-Ubuntu SMP Tue Oct 9 19:32:08 UTC 2012 i686 i686 i686 GNU/Linux
$which idle /usr/bin/idlewhichコマンドでパスが返却されたら、インストールされているということです。
$pwd /home/tom/Downloads $ls $pwd /home/tom/Downloads $wget http://peak.telecommunity.com/dist/ez_setup.py --2013-04-07 22:25:12-- http://peak.telecommunity.com/dist/ez_setup.py Resolving peak.telecommunity.com (peak.telecommunity.com)... 209.190.5.234 Connecting to peak.telecommunity.com (peak.telecommunity.com)|209.190.5.234|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 10240 (10K) [text/plain] Saving to: `ez_setup.py' 100%[======================================>] 10,240 6.09K/s in 1.6s 2013-04-07 22:25:15 (6.09 KB/s) - `ez_setup.py' saved [10240/10240]
$ll ez_setup.py -rw-r--r-- 1 tom tom 10240 1月 21 2011 ez_setup.py $python ez_setup.py Setuptools version 0.6c11 or greater has been installed. (Run "ez_setup.py -U setuptools" to reinstall or upgrade.)私の環境では、既にインストールされていたため、その旨のメッセージが出力されました。
$sudo python ez_setup.py -U setuptools Searching for distribute Reading http://pypi.python.org/simple/distribute/ Reading http://packages.python.org/distribute Best match: distribute 0.6.36 Downloading http://pypi.python.org/packages/source/d/distribute/distribute-0.6.36.tar.gz#md5=a923385de72dcdca68cd4ac2b9dc1148 Processing distribute-0.6.36.tar.gz Writing /tmp/easy_install-Rx12Db/distribute-0.6.36/setup.cfg Running distribute-0.6.36/setup.py -q bdist_egg --dist-dir /tmp/easy_install-Rx12Db/distribute-0.6.36/egg-dist-tmp-XemwZS Before install bootstrap. Scanning installed packages Setuptools installation detected at /usr/local/lib/python2.7/dist-packages Non-egg installation Moving elements out of the way... Already patched. /usr/local/lib/python2.7/dist-packages/setuptools-0.6c11-py2.7.egg-info already patched. After install bootstrap. /usr/local/lib/python2.7/dist-packages/setuptools-0.6c11-py2.7.egg-info already exists Removing distribute 0.6.34 from easy-install.pth file Adding distribute 0.6.36 to easy-install.pth file Installing easy_install script to /usr/local/bin Installing easy_install-2.7 script to /usr/local/bin Installed /usr/local/lib/python2.7/dist-packages/distribute-0.6.36-py2.7.egg Processing dependencies for distribute Finished processing dependencies for distribute