add section for pypi caching proxy

This commit is contained in:
2024-07-01 14:46:55 +02:00
parent 9760e7a156
commit 5098fc0220
2 changed files with 16 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
# Python
## 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:
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.
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:
You can manually specify the url while using the `pip` command as follows:
pip install --index-url=https://pypi.psi.ch/simple pandas