Environment Variables

PYTHONPATH

Augments the default search path for module files. The format is the same as the shell’s $PATH: directory path names separated by colons (or semicolons).

PYTHONSTARTUP

If set to the name of a readable file, the Python commands in that file are executed before the first prompt is displayed in interactive mode.

PYTHONHOME

Alternate prefix directory for library modules (or sys.prefix/ exec_prefix). The default module search path uses sys.prefix/lib.

PYTHONDEBUG

If non-empty, same as -d option.

PYTHONINSPECT

If non-empty, same as -i option.

PYTHONSUPPRESS

If non-empty, same as -s option.

PYTHONUNBUFFERED

If non-empty, same as -u option.

PYTHONVERBOSE

If non-empty, same as -v option.

Get Python Pocket Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.