Skip to content

Instantly share code, notes, and snippets.

@RVIRUS0817
Last active November 16, 2016 03:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RVIRUS0817/4cc338ec21836c67850850fd696fcbfa to your computer and use it in GitHub Desktop.
Save RVIRUS0817/4cc338ec21836c67850850fd696fcbfa to your computer and use it in GitHub Desktop.
shell script
#!/bin/bash
VERSIONS=${VERSIONS:-"2.7.8.10"}
# make directory
mkdir -p /opt/bin
cd /opt/bin
wget http://downloads.activestate.com/ActivePython/releases/${VERSIONS}/ActivePython-${VERSIONS}-linux-x86_64.tar.gz
tar -xzvf ActivePython-${VERSIONS}-linux-x86_64.tar.gz
mv ActivePython-${VERSIONS}-linux-x86_64 apy && cd apy && ./install.sh -I /opt/bin/python/
ln -s /opt/python/bin/easy_install /bin/easy_install
ln -s /opt/python/bin/pip /bin/pip
ln -s /opt/python/bin/python /bin/python
ln -s /opt/python/bin/virtualenv /bin/virtualenv
ln -s /opt/python/bin/python /usr/bin/python
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment