Registry / data / xpresslibs

xpresslibs

JSON →
library9.9.0pypypi✓ verified 84d ago

Python distribution of the FICO Xpress Optimizer solver libraries (version 9.8.1). Provides the core C libraries (XPRS DLLs/SOs) for mathematical optimization, typically accessed via the xpress Python package. Bundles the native solver binaries needed by the xpress interface.

pip install xpresslibs
INSTALL
IMPORT
SIG · XPRESSLIBS
X
xpresslibs
datapythonv9.9.0
Install
2.7s avg
Import
Disk
157MB
Pass rate
5/ 10
Env Coverage5 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v9.9.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
build_error
glibc
py 3.103.95 runs
installs and imports cleanly · install 2.7s · import 0.000s · 160MB
157MB installed
● package 157MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

xpresslibs
import xpresslibs
import xpress as xp

Basic usage: create a problem, add variables and constraints, solve with Xpress Optimizer.

import xpress as xp p = xp.problem() x = p.addVariable(name='x') y = p.addVariable(name='y') p.setObjective(x + 2*y, sense=xp.minimize) p.addConstraint(x + y >= 1) p.optimize() print("x =", p.getSolution(x)) print("y =", p.getSolution(y))
Debug
Known issues
breakingxpresslibs 9.8.1 includes the Xpress Optimization 9.8.1 solver libraries. Libraries are platform-specific (Windows, Linux, macOS) and require matching architecture (64-bit). Incompatible with older xpress Python package versions.
fix
Ensure xpresslibs version matches xpress package version (e.g., both 9.8.1).
affects: >=9.8.0
gotchaxpresslibs does not install the xpress Python package; it only provides the native libraries. Installing xpresslibs alone will not make the solver usable.
fix
Install both: pip install xpress xpresslibs, or simply pip install xpress which automatically pulls xpresslibs.
affects: all
deprecatedSupport for 32-bit architectures was dropped in Xpress 9.0. Older xpresslibs versions may still include 32-bit libraries, but 9.8.1 only ships 64-bit binaries.
fix
Use a 64-bit Python interpreter and operating system.
affects: >=9.0
gotchaLicense activation required. The Xpress Optimizer is commercial software; a license file (xpauth.xpr) must be present. Without a valid license, the solver fails with an error.
fix
Set environment variable XPRESSDIR to the installation path or place license in the working directory. Obtain a license from FICO.
affects: all
Upgrade
Version history
9.9.0latest on PyPI · released May 18, 2026
Audit
Dependencies
xpress>=9.8.1requiredxpresslibs provides the native libraries required by the xpress package's Optimizer API. Without xpress, the libraries are not directly usable from Python.
Agent activity
45 hits · last 30 days
node
36
OpenAI (training)
1
Resources
xpresslibs — pip install xpresslibs · libregistry