Install Python pip on QNAP NAS

  • QNAP Model: TS–439 Pro II
  • CPU: Intel(R) Atom(TM)

Setup procedures

  • Install Python from QNAP App center. (It should be the most easy way)
  • Access your NAS through SSH, ex. ssh admin@
  • Install setuptools $ wget --no-check-certificate $ tar xf setuptools-3.4.4.tar.gz $ cd setuptools-3.4.4 $ python build $ python install `
  • Install pip
    $ curl -O -k
    $ tar xf pip-1.5.4.tar.gz
    $ cd pip-1.5.4
    $ python install
  • Add symbolic links

    $ vim /share/MD0_DATA/.qpkg/Python/
    Note: you can find a cheatsheet on how to use vim here. Insert the following two statements under the “#create symbolic links” section
    /bin/ln -sf ${QPKG_BASE}/.qpkg/Python/bin/pip /usr/bin/pip
    /bin/ln -sf ${QPKG_BASE}/.qpkg/Python/bin/pip2.7 /usr/bin/pip2.7
    Save and exit.
    /share/MD0_DATA/.qpkg/Python/ restart

    SSL error when using pip

    When running pip install you’ll get the following SSL error (run with -v option):

    SSL routines:SSL3GETSERVERCERTIFICATE:certificate verify failed_

    Workaround: Install libraries manually


  • Download the archive:

    curl -o boto-2.27.0.tar.gz -k

  • Install the archive:
    `pip install boto-2.27.0.tar.gz