Preinstalled Packages
Overview
Each preinstalled Python version also includes Python packages supporting Data Lab and SPy. These packages can be imported in notebooks, modules, or scripts without having to install them. Use the commands below to list the preinstalled packages and their versions.
Python
Starting from Python 3.11, only a minimal subset of packages necessary for SPy and Data Lab will come pre-installed. Any additional packages must be installed manually. For further details, refer to Installing Python Modules and Packages.
Ensure that you are in the correct Python environment from the terminal using the pyversion command before proceeding. — Python Versions and Packages
For a complete set of installed packages, execute the following commands in a Data Lab terminal.
Locally Installed Packages
pip list
Globally Installed Packages
PYTHONUSERBASE=$GLOBAL_PKG pip list
Preinstalled System Packages
For Python 3.11 environment:
PYTHONUSERBASE=$PY311_ROOT pip list
For Python 3.13 environment:
PYTHONUSERBASE=$PY313_ROOT pip list
To learn about the order of precedence for importing packages, see Installing Python Modules and Packages | Order-of-Precedence-for-Importing-Python-Packages
R (Programming Language)
See Enabling R Language Support