Registry / data / cbcbox

cbcbox

JSON →
library2.929pypypi✓ verified 88d ago

Binary distribution of the COIN-OR Branch and Cut (CBC) MILP solver for Python. Provides a precompiled CBC binary via Python package, enabling mixed-integer linear programming. Current version 2.929. Release cadence is irregular; follows upstream CBC releases.

pip install cbcbox
INSTALL
IMPORT
SIG · CBCBOX
C
cbcbox
datapythonv2.929
Install
6.1s avg
Import
18ms
Disk
564MB
Pass rate
5/ 10
Env Coverage5 / 10
glibc
3.9–3.13
musl
3.9–3.13
Install & Compatibility
Where this runs
tested against v2.929 · 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.10–3.95 runs
build_error
glibc
py 3.10–3.95 runs
installs and imports cleanly · install 6.1s · import 0.018s · 566MB
564MB installed
● package 564MB
Code
Verified usage

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

cbcbox
✓ import cbcbox
cbcbox is a module that provides the CBC binary path; no classes typically imported.

Verifies that the CBC binary shipped with cbcbox exists. Then use with PuLP or or-tools by specifying the solver path.

import cbcbox from pathlib import Path cbc_path = Path(cbcbox.__file__).parent / 'cbc' print('CBC executable found at:', cbc_path.exists())
cbc --version
Debug
Known issues
deprecatedSome OS-specific wheels are not updated; Linux x86_64 and macOS x86_64 are supported, but ARM macOS may see delays.
fix
Use the conda-forge version of CBC or compile from source if your platform lacks a wheel.
affects: <=2.929
gotchaThe binary may not have execute permissions after installation on some systems; you may need to chmod +x.
fix
Run: import subprocess; subprocess.run(['chmod', '+x', cbc_path])
affects: all
breakingVersion numbering changed between major releases; do not rely on version comparisons.
fix
Check for the existence of the binary rather than pinning a specific version.
affects: >=2.0
gotchacbcbox does not expose a Python API; it only bundles the binary. Use PuLP or or-tools to actually solve models.
fix
Install a modeling library like PuLP: `pip install pulp` and then set solver path to cbcbox's CBC binary.
affects: all
Errors
Common errors & fixes
ModuleNotFoundError: No module named 'cbcbox'
Package not installed or installed in a different environment.
fix
Run `pip install cbcbox` in the correct Python environment.
FileNotFoundError: [Errno 2] No such file or directory: '.../cbc'
CBC binary missing due to incomplete installation or wrong platform.
fix
Ensure you are on a supported platform (Linux x86_64, macOS x86_64). For others, install CBC via conda or compile from source.
PermissionError: [Errno 13] Permission denied: '.../cbc'
Binary lacks execute permission on Linux/macOS.
fix
Run `import subprocess; subprocess.run(['chmod', '+x', str(cbc_path)])` after importing cbcbox.
Upgrade
Version history
2.929latest on PyPI · released Mar 23, 2026
Audit
Dependencies
ortoolsoptionalcbcbox is often used with or-tools' CBC interface, but it can also be used standalone
pulpoptionalPuLP can use cbcbox as a solver backend
Agent activity
18 hits · last 30 days
node
16
OpenAI (training)
1
Resources
cbcbox — pip install cbcbox · libregistry