site.addusersitepackages
Prev: site.addsitepackages | Up: site | Next: site.check_enableusersite
Rel: site.abs_paths, site.addpackage, site.addsitedir, site.addsitepackages
Ref: docs.python.org — site.addusersitepackages
Tags: #public #python3 #stdlib #site
Import
import site
from site import addusersitepackages
Signature & Overview
site.addusersitepackages(known_paths)
Add a per user site-package to sys.path Each user has its own python directory with site-packages in the home directory.
Usage
import site
assert callable(site.addusersitepackages)
Gotchas
- Skipped when
python3 -s/-Ior inside isolated venvs.
REPL Inspect
from site import addusersitepackages
help(addusersitepackages)
Linked from
Related notes
- tuts/python3/stdlib_module/site/abs_paths Linked here; links to this page; shared tags: #site, #stdlib
- tuts/python3/stdlib_module/site/addpackage Linked here; links to this page; shared tags: #site, #stdlib
- tuts/python3/stdlib_module/site/addsitedir Linked here; links to this page; shared tags: #site, #stdlib
- tuts/python3/stdlib_module/site/addsitepackages Linked here; links to this page; shared tags: #site, #stdlib
- tuts/python3/stdlib_module/site/check_enableusersite Linked here; links to this page; shared tags: #site, #stdlib
- tuts/python3/stdlib_module/site Linked here; links to this page; shared tags: #stdlib
- tuts/python3/stdlib_module/site/enablerlcompleter shared tags: #site, #stdlib
- tuts/python3/stdlib_module/site/execsitecustomize shared tags: #site, #stdlib
- tuts/python3/stdlib_module/site/execusercustomize shared tags: #site, #stdlib
- tuts/python3/stdlib_module/site/gethistoryfile shared tags: #site, #stdlib