Python Package Installer Behavior for Least-Privilege Mode

By default, least-privilege mode blocks Notebook sessions from using the Python package manager (pip) installation process.

NI recommends having a Windows administrator manage and install packages into the system Python environment. The following command restricts notebook accounts to read-only access.

# Run as Administrator
# Replace <version> with the Python version folder under
# %ProgramFiles%\National Instruments\Shared\Skyline\Python\
& "$env:ProgramFiles\National Instruments\Shared\Skyline\Python\<version>\python.exe" -m pip install <pkg>

If your workload requires notebook sessions to run pip install directly, refer to Relaxing Permissions for Least-Privilege Mode.