botoライブラリのインストールをしようとしたらeasy_installがhard_installになった
こんばんはブータです。
Macにbotoライブラリをeasy_installでインストールして遊んでみようと思ったところ、
スタックトレースが・・・
$ sudo easy_install boto Traceback (most recent call last): File "/usr/bin/easy_install-2.7", line 10, in <module> load_entry_point('setuptools==0.6c12dev-r85381', 'console_scripts', 'easy_install')() File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 318, in load_entry_point """Locate distribution `dist_spec` and run its `script_name` script""" File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 2220, in load_entry_point ImportError: Entry point ('console_scripts', 'easy_install') not found
以前は使えていたような気がしたのですが、いつからこうなったのかはわかりません。
とりあえずbotoはgithubからクローンしてしまえばよいのですが、
他のライブラリも使いたくなると面倒になるのでeasy_installを直します。
ググるとdistributeを導入すると良いよとありました。
あれ?元々あったんじゃないんだっけ?
まあ今となってはわからないのでいいや。
$ curl -O http://python-distribute.org/distribute_setup.py
$ sudo python distribute_setup.py
botoのインストールを試してみます。
$ sudo easy_install boto Searching for boto Reading http://pypi.python.org/simple/boto/ Reading http://code.google.com/p/boto/ Reading http://code.google.com/p/boto Reading https://github.com/boto/boto Reading https://github.com/boto/boto/ Best match: boto 2.3.0 ・・省略・・ Installed /Library/Python/2.7/site-packages/boto-2.3.0-py2.7.egg Processing dependencies for boto Finished processing dependencies for boto
問題なくbotoのインストールが完了しました。