Last active
January 30, 2017 20:04
-
-
Save orsenthil/e7f656b475eba1923ac8f9a8a023d6f7 to your computer and use it in GitHub Desktop.
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
pushd /tmp | |
echo "Installing Python" | |
curl -O https://www.python.org/ftp/python/2.7.13/Python-2.7.13.tgz | |
tar xvjf Python-2.7.13.tgz | |
cd Python-2.7.13 | |
CPPFLAGS="-I$(brew --prefix openssl)/include" LDFLAGS="-L$(brew --prefix openssl)/lib" ./configure --prefix=$HOME/python27 | |
make && make install | |
popd | |
pushd /tmp | |
echo "Installing pip" | |
curl -O https://bootstrap.pypa.io/get-pip.py | |
$HOME/python27/bin/python get-pip.py | |
$HOME/python27/bin/pip install virtualenv | |
popd | |
echo "Please add $HOME/python27/bin to your PATH" | |
echo "Create virtualenv: like virtualev yourvirtualenvname" | |
echo "Activate it: source yourvirtualenvname/bin/activate" | |
echo "And experiment!" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment