mac(Lion)にpythonとかpipとかをインストール
mac標準のpythonのバージョンが2.7.1だったんで、アップグレードじゃっ(・∀・)
あとbrewを使っているので、それで色々管理したいなーと思いましたので
ここを参考にさせて頂きました!
http://note.sicafe.net/macPackageManageTips/html/homebrewPythonInstall.html
PATHを通す
.bash_profileとかに以下を追加。
export PATH=$PATH:/usr/local/share/python
source ~/.bash_profile
も忘れずに。
pipをインストール
pipはPythonのバージョン管理みたいなものらしい。
nodeで言うとnvm的なものかな?
入れましょう!
$ easy_install pip Searching for pip Reading http://pypi.python.org/simple/pip/ Reading http://pip.openplans.org Reading http://www.pip-installer.org Best match: pip 1.0.2 Downloading http://pypi.python.org/packages/source/p/pip/pip-1.0.2.tar.gz#md5=47ec6ff3f6d962696fe08d4c8264ad49 Processing pip-1.0.2.tar.gz Running pip-1.0.2/setup.py -q bdist_egg --dist-dir /var/folders/mx/jx26pzv53tx7dgw_ftg_vyk00000gn/T/easy_install-EF5HYw/pip-1.0.2/egg-dist-tmp-z7VrB_ warning: no files found matching '*.html' under directory 'docs' warning: no previously-included files matching '*.txt' found under directory 'docs/_build' no previously-included directories found matching 'docs/_build/_sources' Adding pip 1.0.2 to easy-install.pth file Installing pip script to /usr/local/share/python Installing pip-2.7 script to /usr/local/share/python Installed /usr/local/lib/python2.7/site-packages/pip-1.0.2-py2.7.egg Processing dependencies for pip Finished processing dependencies for pip
pipを使って色々入れてみよう
pipって便利だねぇー(^^)
知りませんでした^^;
今までソースから入れたたのでめっちゃ捗りますー
$ pip install CherryPy Downloading/unpacking CherryPy Downloading CherryPy-3.2.2.tar.gz (414Kb): 414Kb downloaded Running setup.py egg_info for package CherryPy Installing collected packages: CherryPy Running setup.py install for CherryPy changing mode of build/scripts-2.7/cherryd from 644 to 755 changing mode of /usr/local/share/python/cherryd to 755 Successfully installed CherryPy Cleaning up… $ pip install nympy ...
現状こうなりました!
$ pip freeze CherryPy==3.2.2 distribute==0.6.24 git-remote-helpers==0.1.0 numpy==1.6.1 wsgiref==0.1.2
おしまい!