Last active
November 16, 2016 03:57
-
-
Save RVIRUS0817/4cc338ec21836c67850850fd696fcbfa to your computer and use it in GitHub Desktop.
shell script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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