Skip to content

Instantly share code, notes, and snippets.

@edsono
Forked from jimorsm/pyenv.sh
Last active October 30, 2018 14:32
Show Gist options
  • Save edsono/9084f1bd48a80b3f2959d085102017aa to your computer and use it in GitHub Desktop.
Save edsono/9084f1bd48a80b3f2959d085102017aa to your computer and use it in GitHub Desktop.
install python3.7.1 on centos 7
#!/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 libffi-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
exec $SHELL - l # or ssh again...
pyenv install 3.7.1
pyenv global 3.7.1
pyenv rehash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment