[ Skip to the content ]

Institute of Formal and Applied Linguistics Wiki


[ Back to the navigation ]

Table of Contents

Použití mojí zkompilované verze Pythonu

mkdir -p ~/.local-{i686,x86_64}/{lib/python2.7/site-packages,bin}
ARCH=`arch`
export PYTHONUSERBASE=~/.local-$ARCH
export UBUNTU_VERSION=`lsb_release -a 2>/dev/null | grep Release | cut -f 2`
if [ $UBUNTU_VERSION = '10.04' ]; then
    export PATH=/home/odusek/work/tools/python-2.7.3/$ARCH/bin:$PYTHONUSERBASE/bin:$PATH
else
    export PATH=$PYTHONUSERBASE/bin:$PATH
fi

Lokální instalace modulů

==== Instalace Setuptools ====

* setuptools je potřeba, aby se dal nainstalovat pip.
* setuptools se nainstaluje podle návodu:



sh setuptools-0.6c11-py2.7.egg –prefix=~/.local-`arch`

Instalace Pipu

python get-pip.py --user

Hotovo

pip install <modul> --user

[ Back to the navigation ] [ Back to the content ]