python:virtualenv
no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
— | python:virtualenv [2011/01/05 14:48] (current) – created tkbletsc | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | The script below is a recipe to download and deploy Python 2.7 in your home directory without dependencies (except gcc). It also uses virtualenv to deploy a virtual Python environment, | ||
+ | <code bash> | ||
+ | PYVER=2.7.1 | ||
+ | PYPATH=~/ | ||
+ | VPYPATH=~/ | ||
+ | |||
+ | mkdir -p $PYPATH | ||
+ | wget -c http:// | ||
+ | echo Extracting... | ||
+ | |||
+ | tar xf Python-$PYVER.tgz | ||
+ | cd Python-$PYVER/ | ||
+ | ./configure --prefix=$PYPATH && make -j2 && make install | ||
+ | cd .. | ||
+ | echo Python installed. | ||
+ | |||
+ | wget -c http:// | ||
+ | tar xf virtualenv-1.5.1.tar.gz | ||
+ | cd virtualenv-1.5.1/ | ||
+ | mkdir -p $VPYPATH | ||
+ | $PYPATH/ | ||
+ | echo Virtualenv created. | ||
+ | |||
+ | $VPYPATH/ | ||
+ | echo Numpy installed. | ||
+ | |||
+ | echo Done. Your python is: $VPYPATH/ | ||
+ | </ |
python/virtualenv.txt · Last modified: 2011/01/05 14:48 by tkbletsc