Skip to content

Instantly share code, notes, and snippets.

@roxma
Last active November 10, 2016 02:34
Show Gist options
  • Save roxma/c4de9e894ef35fe1d1777c946d9094da to your computer and use it in GitHub Desktop.
Save roxma/c4de9e894ef35fe1d1777c946d9094da to your computer and use it in GitHub Desktop.
# root required
yum install centos-release-scl
yum install python33
. /opt/rh/python33/enable
wget https://bootstrap.pypa.io/get-pip.py
python get-pip.py
echo '#!/bin/sh
. /opt/rh/python33/enable
exec python3 "$@"
' > /usr/bin/python3
chmod +x /usr/bin/python3
echo '#!/bin/sh
. /opt/rh/python33/enable
exec pip3 "$@"
' > /usr/bin/pip3
chmod +x /usr/bin/pip3
@roxma
Copy link
Author

roxma commented Nov 10, 2016

change python33 into rh-python35 if you need python35

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment