There are a large number of Python-specific environment variables available. Some of them are:
- PYTHONHOME: Used to change the location of the standard Python libraries. By default, libraries are searched in /usr/local/lib/<python_version>.
- PYTHONPATH: Modifies the default search path for modules files; the format is the same as the shell's PATH. While directories are normally placed in the PYTHONPATH, individual entries can point to ZIP files that contain pure Python modules. These zipfile modules can be either source code or compiled Python files.
- PYTHONSTARTUP: Executes Python commands in the indicated startup file before the interactive mode prompt appears. The file is executed in the same namespace as the interactive ...