Google created OR-Tools in C++, but you can also use it with Python, Java, or C# (on the .NET platform).
Install OR-Tools for Python
The fastest way to get OR-Tools is to install the Python binary version. If you already have Python (version 3.6+ on Linux, MacOS or Windows), and the Python package manager PIP, you can install OR-Tools as follows:
python -m pip install --upgrade --user ortools
After the installation is complete, you are ready to get started with OR-Tools for Python.
To install OR-Tools for another language or from source, see the next section.
Installation instructions for all supported languages
For instructions on installing OR-Tools, as well as the required prerequisites, click one of the links below:
Download OR-Tools
If you're already familiar with installing OR-Tools and just want to download the latest version, you can get it either from a binary distribution or the source file.
If you need to install an older version, the OR-Tools release page has links to downloads for past releases.
Binary distributions
Below are links to the OR-Tools binary distributions by language and platform.
Python
The easiest way to install OR-Tools for Python is from the command line, as shown above.
However, if you prefer, you can install OR-Tools from one of the Python wheel files.
C++
Linux
- Alpine Edge
- CentOS Stream 8
- CentOS 7 LTS
- Debian 11
- Debian 10
- Fedora 36
- Fedora 35
- Fedora 34
- Fedora 33
- OpenSuse Leap
- Ubuntu 22.10
- Ubuntu 22.04 LTS
- Ubuntu 20.04 LTS
- Ubuntu 18.04 LTS
MacOS
Windows
.Net
Linux
- Alpine Edge
- CentOS Stream 8
- CentOS 7 LTS
- Debian 11
- Debian 10
- Fedora 36
- Fedora 35
- Fedora 34
- Fedora 33
- OpenSuse Leap
- Ubuntu 22.10
- Ubuntu 22.04 LTS
- Ubuntu 20.04 LTS
- Ubuntu 18.04 LTS
MacOS
Windows
Java
Linux
- Alpine Edge
- CentOS Stream 8
- CentOS 7 LTS
- Debian 11
- Debian 10
- Fedora 36
- Fedora 35
- Fedora 34
- Fedora 33
- OpenSuse Leap
- Ubuntu 22.10
- Ubuntu 22.04 LTS
- Ubuntu 20.04 LTS
- Ubuntu 18.04 LTS
MacOS
Windows
Source files
To get the source files for the latest release of OR-Tools, you can either:
- Download them in a tar.gz or .zip file.
- Clone them from the OR-Tools repository on GitHub.
Docker
Currently, we don't provide official images for OR-Tools on the Google Cloud Registry.