Skip to content

Instantly share code, notes, and snippets.

@gavinzhou
Last active August 29, 2015 14:23
Show Gist options
  • Save gavinzhou/6ec34e0f015a6f681cb6 to your computer and use it in GitHub Desktop.
Save gavinzhou/6ec34e0f015a6f681cb6 to your computer and use it in GitHub Desktop.
yum install gcc make expat-devel db4-devel gdbm-devel sqlite-devel readline-devel zlib-devel bzip2-devel openssl-devel -y
yum install libxslt-devel -y
git clone git://github.com/yyuu/pyenv.git ~/.pyenv
cat > EOF <<
export PYENV_ROOT="${HOME}/.pyenv"
if [ -d "${PYENV_ROOT}" ]; then
export PATH=${PYENV_ROOT}/bin:$PATH
eval "$(pyenv init -)"
fi
EOF
wget https://gmplib.org/download/gmp/gmp-6.0.0a.tar.bz2
tar -jxvf gmp-6.0.0a.tar.bz2
./configure
make && make install
pip uninstall -y distribute
pip uninstall -y setuptools
pip install setuptools
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment