Python

Op de QNAP

PIP

Upgrade:

pip install -U pip

Installeren

curl -O https://pypi.python.org/packages/source/p/pip/pip-1.4.1.tar.gz -k
tar xf pip-1.4.1.tar.gz
cd pip-1.4.1
python setup.py install

Bij de melding: “ImportError: No module named setuptools”, eerst setupools installeren…

wget https://pypi.python.org/packages/source/s/setuptools/setuptools-1.0.tar.gz --no-check-certificate
tar xf setuptools-1.0.tar.gz
cd setuptools-1.0
python setup.py build
python setup.py install
nano /share/MD0_DATA/.qpkg/Python/python.sh

Zet de volgende regels in de “create symbilic links” sectie

/bin/ln -sf ${QPKG_BASE}/.qpkg/Python/bin/pip /usr/bin/pip
/bin/ln -sf ${QPKG_BASE}/.qpkg/Python/bin/pip-2.7 /usr/bin/pip-2.7

Sluit nano af en voer daarna uit:

/share/MD0_DATA/.qpkg/Python/python.sh restart
/share/Web/dokuwiki/data/pages/beheer/python.txt · Laatst gewijzigd: 2014/04/19 15:18 door pieter
CC Attribution-Share Alike 4.0 International
Powered by PHP Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0 Valid HTML5