Skip to content

Instantly share code, notes, and snippets.

@bylatt
Last active November 10, 2020 16:29
Show Gist options
  • Save bylatt/b0421d8af60e26d97372 to your computer and use it in GitHub Desktop.
Save bylatt/b0421d8af60e26d97372 to your computer and use it in GitHub Desktop.

Revisions

  1. Lattapon Yodsuwan revised this gist Sep 22, 2015. No changes.
  2. Lattapon Yodsuwan created this gist Sep 22, 2015.
    11 changes: 11 additions & 0 deletions pyenv.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,11 @@
    # install python 2.7.10 with pyenv on centos 7

    yum install -y gcc gcc-c++ make git patch openssl-devel zlib-devel readline-devel sqlite-devel bzip2-devel

    git clone git://github.com/yyuu/pyenv.git ~/.pyenv
    echo 'export PATH="$HOME/.pyenv/bin:$PATH"' >> .bashrc
    echo 'eval "$(pyenv init -)"' >> .bashrc

    pyenv install 2.7.10
    pyenv global 2.7.10
    pyenv rehash