From a98c81b2e67389b19d53b861e31a674af340f40b Mon Sep 17 00:00:00 2001 From: ebner Date: Tue, 3 Feb 2026 15:05:20 +0100 Subject: [PATCH] update pip info --- docs/services/user-guide/python.md | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/docs/services/user-guide/python.md b/docs/services/user-guide/python.md index 1c86e605..3faa7d39 100644 --- a/docs/services/user-guide/python.md +++ b/docs/services/user-guide/python.md @@ -1,19 +1,19 @@ # Python -!!! note - This setting will be default on all managed RHEL systems by 04.02.2026 - ## Package Caching Proxy -Instead of accessing pypi.org directly PSI provides a caching proxy for pypi packages. There are several advantages in using this instead of directly accessing pypi.org: +Instead of accessing pypi.org directly PSI provides a caching proxy for pypi packages. There are some advantages in using this instead of directly accessing pypi.org: 1. Speed - the caching proxy might/will improve the dependency resolution and download speed for installing packages -2. Once downloaded/installed packages will still be available even if they are not accessible on the internet again. +2. Once downloaded/installed packages will still be available even if they are not accessible on the internet any more. 3. Accessibility - pypi.psi.ch is accessible from all PSI networks (including the onces without internet access) ### Usage The url to use the CachingProxy is: https://pypi.psi.ch/simple: +!!! note + All managed RHEL systems at PSI do have the proxy configured by default for the system wide pip installation. Therefore no additional configuration is needed on those systems. + You can manually specify the url while using the `pip` command as follows: pip install --index-url=https://pypi.psi.ch/simple pandas @@ -31,13 +31,14 @@ To change the default for the whole system edit: `/etc/pip.conf` (also see: https://pip.pypa.io/en/stable/topics/configuration/#location) To check whether your pip client is using this address you can simply issue a: -``` + +```bash pip install -h ``` Check whats written in the descripiton of the option --index-url: -``` +```bash % pip install -h | grep -A5 index-url -i, --index-url Base URL of the Python Package Index (default https://pypi.psi.ch/simple). This should point @@ -48,9 +49,9 @@ Check whats written in the descripiton of the option --index-url: ``` or do a `pip config list` -``` + +```bash % pip config list global.index-url='https://pypi.psi.ch/simple' global.timeout='60' - -``` \ No newline at end of file +```