Skip to content

Instantly share code, notes, and snippets.

@jimorsm
Forked from bylatt/pyenv.sh
Last active November 15, 2018 21:57
Show Gist options
  • Save jimorsm/ecf2485989762ca2d2e8fec70e2e7c7f to your computer and use it in GitHub Desktop.
Save jimorsm/ecf2485989762ca2d2e8fec70e2e7c7f to your computer and use it in GitHub Desktop.

Revisions

  1. jimorsm revised this gist Feb 7, 2017. 1 changed file with 5 additions and 5 deletions.
    10 changes: 5 additions & 5 deletions pyenv.sh
    Original file line number Diff line number Diff line change
    @@ -1,14 +1,14 @@
    #!/bin/bash
    #!/bin/sh

    # install pyenv on centos 7

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

    curl -L https://raw.githubusercontent.com/yyuu/pyenv-installer/master/bin/pyenv-installer | bash
    echo 'export PATH="$HOME/.pyenv/bin:$PATH"' >> .bashrc
    echo 'eval "$(pyenv init -)"' >> .bashrc
    echo 'eval "$(pyenv virtualenv-init -)"' >> .bashrc
    source .bashrc
    echo 'export PATH="$HOME/.pyenv/bin:$PATH"' >> .zshrc
    echo 'eval "$(pyenv init -)"' >> .zshrc
    echo 'eval "$(pyenv virtualenv-init -)"' >> .zshrc
    exec $SHELL - l

    pyenv install 3.6.0
    pyenv global 3.6.0
  2. jimorsm renamed this gist Feb 7, 2017. 1 changed file with 9 additions and 5 deletions.
    14 changes: 9 additions & 5 deletions install_pyenv.sh → pyenv.sh
    Original file line number Diff line number Diff line change
    @@ -1,11 +1,15 @@
    !# /bin/bash
    #!/bin/bash

    # install pyenv on centos 7

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

    curl -L https://raw.githubusercontent.com/yyuu/pyenv-installer/master/bin/pyenv-installer | bash
    echo 'export PATH="$HOME/.pyenv/bin:$PATH"' >> .zshrc
    echo 'eval "$(pyenv init -)"' >> .zshrc
    echo 'eval "$(pyenv virtualenv-init -)"' >> .zshrc

    echo 'export PATH="$HOME/.pyenv/bin:$PATH"' >> .bashrc
    echo 'eval "$(pyenv init -)"' >> .bashrc
    echo 'eval "$(pyenv virtualenv-init -)"' >> .bashrc
    source .bashrc

    pyenv install 3.6.0
    pyenv global 3.6.0
    pyenv rehash
  3. jimorsm revised this gist Feb 7, 2017. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions install_pyenv.sh
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,5 @@
    !# /bin/bash

    # install pyenv on centos 7

    yum install -y gcc gcc-c++ make git patch openssl-devel zlib-devel readline-devel sqlite-devel bzip2-devel
  4. jimorsm revised this gist Feb 7, 2017. 2 changed files with 9 additions and 11 deletions.
    9 changes: 9 additions & 0 deletions install_pyenv.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,9 @@
    # install pyenv on centos 7

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

    curl -L https://raw.githubusercontent.com/yyuu/pyenv-installer/master/bin/pyenv-installer | bash
    echo 'export PATH="$HOME/.pyenv/bin:$PATH"' >> .zshrc
    echo 'eval "$(pyenv init -)"' >> .zshrc
    echo 'eval "$(pyenv virtualenv-init -)"' >> .zshrc

    11 changes: 0 additions & 11 deletions pyenv.sh
    Original file line number Diff line number Diff line change
    @@ -1,11 +0,0 @@
    # 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
  5. Lattapon Yodsuwan revised this gist Sep 22, 2015. No changes.
  6. 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