Last active
August 29, 2015 14:06
-
-
Save qrg/82b27051bbfd3055307f to your computer and use it in GitHub Desktop.
Mac OSX Mavericks で pyenv ref: http://qiita.com/Qurage/items/a93f3cebe54daf5b3e2f
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
~/.pyenv/shims:/usr/local/bin:/usr/bin:/bin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# pyenv ----------------------------------------- | |
if [ -d $HOME/.pyenv ]; then | |
export PATH="${HOME}/.pyenv/shims:$PATH" | |
eval "$(pyenv init -)" | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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