Last active
November 14, 2015 07:06
-
-
Save hiropppe/8f3fb457e2b4fd98e2e7 to your computer and use it in GitHub Desktop.
手元のvm(centos7)のpyenv環境の設定メモ、基本githubのREADMEどおり
This file contains hidden or 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
yum install -y gcc patch openssl-devel zlib-devel bzip2-devel readline-devel sqlite-devel | |
curl -kL https://bootstrap.pypa.io/get-pip.py | python | |
pip install --upgrade pip | |
git clone https://github.com/yyuu/pyenv.git ~/.pyenv | |
echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.bash_profile | |
echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.bash_profile | |
echo 'eval "$(pyenv init -)"' >> ~/.bash_profile | |
exec -l $SHELL | |
pyenv install 2.7.10 | |
git clone https://github.com/yyuu/pyenv-virtualenv.git ~/.pyenv/plugins/pyenv-virtualenv | |
echo 'eval "$(pyenv virtualenv-init -)"' >> ~/.bash_profile | |
exec -l $SHELL | |
pyenv virtualenv 2.7.10 plan_data_env_2.7.10 | |
pyenv local plan_data_env_2.7.10 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment