MacPortsでインストールしたPythonでeasy_install
先日wxPythonのためにMacPortsでPython2.7をインストールしましたが、easy_installの対象が2.6のままでした。
setuptoolsというのをMacPortsでインストールするといいらしいので、やってみます。
$ port search setuptools
py-setuptools @0.6c11 (python, devel)
distutils enhancement for build and distribution
py25-distribute @0.6.19 (python, devel)
Replacement for setuptools
py25-setupdocs @1.0.5 (python, devel)
setuptools plugin that automates building of docs from ReST source
py25-setuptools @0.6c11 (python, devel)
distutils enhancement for build and distribution
py26-distribute @0.6.19 (python, devel)
Replacement for setuptools
py26-setuptools @0.6c11 (python, devel)
distutils enhancement for build and distribution
py27-distribute @0.6.19 (python, devel)
Replacement for setuptools
py27-setuptools @0.6c11 (python, devel)
distutils enhancement for build and distribution
py31-distribute @0.6.19 (python, devel)
Replacement for setuptools
py32-distribute @0.6.19 (python, devel)
Replacement for setuptools
各バージョンごとにあるみたいです。今回は2.7ですから、py27-setuptoolsをインストールします。
$ sudo port install py27-setuptools $ which easy_install-2.7 /opt/local/bin/easy_install-2.7 $ sudo easy_install-2.7 httplib2 ... Installed /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/httplib2-0.7.1-py2.7.egg Processing dependencies for httplib2 Finished processing dependencies for httplib2
おk。