From 7c30a0e25a140970df232542b804f45567443015 Mon Sep 17 00:00:00 2001 From: Michael Blaschek <michael.blaschek@univie.ac.at> Date: Wed, 17 Nov 2021 12:06:24 +0000 Subject: [PATCH] added user site packages import instructions --- VSC.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/VSC.md b/VSC.md index c2da056..74e468d 100644 --- a/VSC.md +++ b/VSC.md @@ -758,6 +758,19 @@ zope.interface 4.7.1 py38h7b6447c_0 zstd 1.5.0 ha95c52a_0 conda-forge ``` +### Import user-site packages +It is possible to install user site packages into your `.local/lib/python3.*` directory: +```bash +# installing a user site package +/gpfs/data/fs71386/imgw/run.sh pip install --user [package] +``` + +```python +import sys, site +sys.path.append(site.site.getusersitepackages()) +# This will add the correct path. +``` +Then you will be able to load all packages that are located in the user site. ## Debugging on VSC-4 -- GitLab