Synology NAS – Python package manager PIP installeren
PIP is een package manager voor Python, je kan met PIP plugins en bibliotheken toevoegen aan je Python installatie op je Synology NAS.
Wat heb je nodig?
1) Python 2 of 3 (installeren via package center)
Installatie (veilig)
1) Download get-pip.py van deze locatie: https://bootstrap.pypa.io/get-pip.py
2) Installeer pip met het volgende commando: python get-pip.py
Installatie (onveilig)
Log in met SSH op je Synology NAS, Python PIP is eenvoudig te installeren met het commando:
curl -k https://raw.githubusercontent.com/pypa/pip/master/contrib/get-pip.py | python
1 2 3 4 5 6 7 8 9 |
% Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 1546k 100 1546k 0 0 704k 0 0:00:02 0:00:02 --:--:-- 704k Collecting pip Downloading pip-6.0.6-py2.py3-none-any.whl (1.3MB) 100% |################################| 1.3MB 462kB/s Installing collected packages: pip Successfully installed pip-6.0.6 |
Als het goed is gegaan kun je nu PIP gebruiken met het commando: pip
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 |
Usage: pip <command> [options] Commands: install Install packages. uninstall Uninstall packages. freeze Output installed packages in requirements format. list List installed packages. show Show information about installed packages. search Search PyPI for packages. wheel Build wheels from your requirements. zip DEPRECATED. Zip individual packages. unzip DEPRECATED. Unzip individual packages. help Show help for commands. General Options: -h, --help Show help. --isolated Run pip in an isolated mode, ignoring environment variables and user configuration. -v, --verbose Give more output. Option is additive, and can be used up to 3 times. -V, --version Show version and exit. -q, --quiet Give less output. --log <path> Path to a verbose appending log. --proxy <proxy> Specify a proxy in the form [user:passwd@]proxy.server:port. --retries <retries> Maximum number of retries each connection should attempt (default 5 times). --timeout <sec> Set the socket timeout (default 15 seconds). --exists-action <action> Default action when a path already exists: (s)witch, (i)gnore, (w)ipe, (b)ackup. --trusted-host <hostname> Mark this host as trusted, even though it does not have valid or any HTTPS. --cert <path> Path to alternate CA bundle. --client-cert <path> Path to SSL client certificate, a single file containing the private key and the certificate in PEM format. --cache-dir <dir> Store the cache data in <dir>. --no-cache-dir Disable the cache. --disable-pip-version-check Don't periodically check PyPI to determine whether a new version of pip is available for download. Implied with --no-index. |
Mocht pip het niet doen, dan kun je eens proberen om symbolische links te maken met het commando:
ln -s /var/packages/Python/target/usr/bin/pip /usr/bin/
[#/synologynas/pakketten/python_pip” ]