diff --git a/VSC.md b/VSC.md index c2da056a2a200e6c4e36ca0e1400b4dafde46a46..74e468d8fe59f3010f6720fc903a88c5e8aee0f7 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