Helix Core is now P4. Product user interfaces will be updated soon. Learn more >>

P4 API for Python Documentation | 2025.2

# System Requirements and Release Notes

For system requirements, see the P4 API for Python Release notes.

## Platform Compatibility

P4 API for Python is certified and regression-tested on the following platforms

Windows (x86, x86_64)

- Windows Server: 2016, 2019, 2022

- Windows Desktop: 10, 11

macOS

- Intel: macOS 11, 12

- Apple Silicon (ARM64): macOS 12, 13

Linux (x86, x86_64)

- Ubuntu: 20.04, 22.04, 24.04

- CentOS 8

- Rocky Linux 9.1, 10

Linux (ARM64)

- Ubuntu: 20.04, 22.04, 24.04

- Rocky Linux 9.4, 10

Platforms not listed above are not actively tested by Perforce. P4 API for Python may still run on other platforms, but issues on unlisted platforms are not prioritized for fixes.

## Python Compatibility

The following versions of P4 API for Python can be built from source using the following Python versions:

Python Version | Minimum P4 API for Python Release
--- | ---
3.10 | 2022.1
3.11 | 2022.2
3.12 | 2023.1
3.13 | 2024.2
3.14 | 2025.2

## Server compatibility

P4 API for Python 2025.2 supports P4 Server 2025.2.

Older releases might work but are not supported.

## P4 API for C/C++ compatibility

P4 API for Ruby 2025.2 requires P4 API for C/C++ 2025.2 or later.

Older API versions will not compile and are not supported.

## OpenSSL Compatibility

To enable encrypted communication, P4 API for Python must be built using the same OpenSSL version as the P4 API for C/C++.

Since P4 API for Python 2017.1, OpenSSL is a mandatory dependency (SSL stub library removed).

Preferred OpenSSL versions:

- OpenSSL 3.x.x

- OpenSSL 1.1.1 (latest patch)

## Compiler Compatibility

P4 API for Python must be built with the same compiler used to build the P4 API for C/C++. The preferred compilers are `gcc` or `g++`.

### Building with Linux

- From P4 API for Python 2019.1, building requires gcc 6 or newer due to updated library dependencies.

- Using mismatched compiler versions may cause link errors due to symbol name differences.

### Building with Windows

- For Python 3.x on Windows, ensure the Visual C++ 2017 Redistributable is installed:

  - `vc_redist.x64.exe (64-bit)`

  - `vc_redist.x86.exe (32-bit)`

  Without these, the P4 API for C/C++ API DLL will fail to load, and import P4 will not work.

Your search for returned results