Skip to content

Instantly share code, notes, and snippets.

@qrg
Last active August 29, 2015 14:06
Show Gist options
  • Save qrg/82b27051bbfd3055307f to your computer and use it in GitHub Desktop.
Save qrg/82b27051bbfd3055307f to your computer and use it in GitHub Desktop.
Mac OSX Mavericks で pyenv ref: http://qiita.com/Qurage/items/a93f3cebe54daf5b3e2f
~/.pyenv/shims:/usr/local/bin:/usr/bin:/bin
# pyenv -----------------------------------------
if [ -d $HOME/.pyenv ]; then
export PATH="${HOME}/.pyenv/shims:$PATH"
eval "$(pyenv init -)"
fi
// brew を利用して pyenv をインストール
$ brew install pyenv
// pyenv rehash を自動化する plugin をインストール
$ git clone https://github.com/yyuu/pyenv-pip-rehash.git ~/.pyenv/plugins/pyenv-pip-rehash
// インストール可能なバージョン確認
$ pyenv install -l
// python のバージョンを指定してインストール
$ pyenv install 2.7.8
// python パス確認
$ which python
/Users/qurage/.pyenv/shims/python
// python バージョン確認
$ python --version
Python 2.7.8
// easy_install パス確認
$ which easy_install
/Users/qurage/.pyenv/shims/easy_install
// easy_install バージョン確認
$ easy_install --version
setuptools 5.7
// pip バージョンとパス確認
$ pip —version
pip 1.5.6 from /Users/qurage/.pyenv/versions/2.7.8/lib/python2.7/site-packages (python 2.7)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment