Path: blob/main/docs/source/polars-on-premises/bare-metal/python-environment.md
8396 views
Virtual Environment
The simplest method is using the Python wheel. This ensures that your virtual environment is properly set up to run Polars On-Premises. Note that when using Python UDFs, the server must have the same Python packages installed as the client.
Python wheel
To install the Python wheel, use our private PyPi index with your license key.
polars-on-premises is then available within your virtual environment and ready to get going.
Direct binary download
When using the binary download directly, you need to ensure that it can access both Python and Polars. The easiest method to achieve this is having a system-wide Python environment and globally installed packages. We recommend however setting up a virtual environment (uv makes this very easy, including maintaining a given Python version).
!!! info "Version pinning" Each release of polars-on-premises is pinned to a single polars release, which can be found in the release announcement and in polars-on-premises --version shell export PINNED_VERSION=1.38.1 # for instance