# Install OR-Tools

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.8+ on Linux, macOS or Windows), and the
Python package manager [PIP](https://pypi.org/project/pip/), you can install
OR-Tools as follows:

    python -m pip install ortools

> [!TIP]
> **Tip:** You should install `ortools` in a [virtual environment](https://packaging.python.org/en/latest/guides/installing-using-pip-and-virtual-environments/#)

After the installation is complete, you are ready to
[get started with OR-Tools for Python](https://developers.google.com/optimization/introduction/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 following links:

- [OR-Tools for C++](https://developers.google.com/optimization/install/cpp)
- [OR-Tools for .Net](https://developers.google.com/optimization/install/dotnet)
- [OR-Tools for Java](https://developers.google.com/optimization/install/java)
- [OR-Tools for Python](https://developers.google.com/optimization/install/python)

## 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](https://developers.google.com/optimization/install#binary)
or the [source file](https://developers.google.com/optimization/install#source).

> [!NOTE]
> **Note:** If you plan to use a third-party solver with OR-Tools, you need to install OR-Tools from the source files.

If you need to install an older version, the
[OR-Tools release page](https://github.com/google/or-tools/releases) has links
to downloads for past releases.

### Binary distributions

Here, 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](https://developers.google.com/optimization/install#python).

However, if you prefer, you can install OR-Tools from one of the Python
[wheel files](https://pypi.org/project/ortools/#files).

#### C++

C++ OR-Tools prebuilt archives.

##### Linux

- [Almalinux 9](https://github.com/google/or-tools/releases/download/v9.12/or-tools_amd64_almalinux-9_cpp_v9.12.4544.tar.gz)
- [Alpine Edge](https://github.com/google/or-tools/releases/download/v9.12/or-tools_amd64_alpine-edge_cpp_v9.12.4544.tar.gz)
- [Debian SID](https://github.com/google/or-tools/releases/download/v9.12/or-tools_amd64_debian-sid_cpp_v9.12.4544.tar.gz)
- [Debian 12](https://github.com/google/or-tools/releases/download/v9.12/or-tools_amd64_debian-12_cpp_v9.12.4544.tar.gz)
- [Debian 11](https://github.com/google/or-tools/releases/download/v9.12/or-tools_amd64_debian-11_cpp_v9.12.4544.tar.gz)
- [Fedora 41](https://github.com/google/or-tools/releases/download/v9.12/or-tools_amd64_fedora-41_cpp_v9.12.4544.tar.gz)
- [Fedora 40](https://github.com/google/or-tools/releases/download/v9.12/or-tools_amd64_fedora-40_cpp_v9.12.4544.tar.gz)
- [Rockylinux 9](https://github.com/google/or-tools/releases/download/v9.12/or-tools_amd64_rockylinux-9_cpp_v9.12.4544.tar.gz)
- [Ubuntu 24.10](https://github.com/google/or-tools/releases/download/v9.12/or-tools_amd64_ubuntu-24.10_cpp_v9.12.4544.tar.gz)
- [Ubuntu 24.04 LTS](https://github.com/google/or-tools/releases/download/v9.12/or-tools_amd64_ubuntu-24.04_cpp_v9.12.4544.tar.gz)
- [Ubuntu 22.04 LTS](https://github.com/google/or-tools/releases/download/v9.12/or-tools_amd64_ubuntu-22.04_cpp_v9.12.4544.tar.gz)
- [Ubuntu 20.04 LTS](https://github.com/google/or-tools/releases/download/v9.12/or-tools_amd64_ubuntu-20.04_cpp_v9.12.4544.tar.gz)

##### macOS

- [macOS M1](https://github.com/google/or-tools/releases/download/v9.12/or-tools_arm64_macOS-15.3.1_cpp_v9.12.4544.tar.gz)
- [macOS Intel](https://github.com/google/or-tools/releases/download/v9.12/or-tools_x86_64_macOS-15.3.1_cpp_v9.12.4544.tar.gz)

##### Windows

- [Visual Studio 2022](https://github.com/google/or-tools/releases/download/v9.12/or-tools_x64_VisualStudio2022_cpp_v9.12.4544.zip)

#### .Net

.Net OR-Tools prebuilt archives.

##### Linux

- [Almalinux 9](https://github.com/google/or-tools/releases/download/v9.12/or-tools_amd64_almalinux-9_dotnet_v9.12.4544.tar.gz)
- [Alpine Edge](https://github.com/google/or-tools/releases/download/v9.12/or-tools_amd64_alpine-edge_dotnet_v9.12.4544.tar.gz)
- [Debian 12](https://github.com/google/or-tools/releases/download/v9.12/or-tools_amd64_debian-12_dotnet_v9.12.4544.tar.gz)
- [Debian 11](https://github.com/google/or-tools/releases/download/v9.12/or-tools_amd64_debian-11_dotnet_v9.12.4544.tar.gz)
- [Fedora 41](https://github.com/google/or-tools/releases/download/v9.12/or-tools_amd64_fedora-41_dotnet_v9.12.4544.tar.gz)
- [Fedora 40](https://github.com/google/or-tools/releases/download/v9.12/or-tools_amd64_fedora-40_dotnet_v9.12.4544.tar.gz)
- [Rockylinux 9](https://github.com/google/or-tools/releases/download/v9.12/or-tools_amd64_rockylinux-9_dotnet_v9.12.4544.tar.gz)
- [Ubuntu 24.10](https://github.com/google/or-tools/releases/download/v9.12/or-tools_amd64_ubuntu-24.10_dotnet_v9.12.4544.tar.gz)
- [Ubuntu 24.04 LTS](https://github.com/google/or-tools/releases/download/v9.12/or-tools_amd64_ubuntu-24.04_dotnet_v9.12.4544.tar.gz)
- [Ubuntu 22.04 LTS](https://github.com/google/or-tools/releases/download/v9.12/or-tools_amd64_ubuntu-22.04_dotnet_v9.12.4544.tar.gz)
- [Ubuntu 20.04 LTS](https://github.com/google/or-tools/releases/download/v9.12/or-tools_amd64_ubuntu-20.04_dotnet_v9.12.4544.tar.gz)

##### macOS

- [macOS M1](https://github.com/google/or-tools/releases/download/v9.12/or-tools_arm64_macOS-15.3.1_dotnet_v9.12.4544.tar.gz)
- [macOS Intel](https://github.com/google/or-tools/releases/download/v9.12/or-tools_x86_64_macOS-15.3.1_dotnet_v9.12.4544.tar.gz)

##### Windows

- [Visual Studio 2022](https://github.com/google/or-tools/releases/download/v9.12/or-tools_x64_VisualStudio2022_dotnet_v9.12.4544.zip)

#### Java

Java OR-Tools prebuilt archives.

##### Linux

- [Almalinux 9](https://github.com/google/or-tools/releases/download/v9.12/or-tools_amd64_almalinux-9_java_v9.12.4544.tar.gz)
- [Alpine Edge](https://github.com/google/or-tools/releases/download/v9.12/or-tools_amd64_alpine-edge_java_v9.12.4544.tar.gz)
- [Debian 12](https://github.com/google/or-tools/releases/download/v9.12/or-tools_amd64_debian-12_java_v9.12.4544.tar.gz)
- [Debian 11](https://github.com/google/or-tools/releases/download/v9.12/or-tools_amd64_debian-11_java_v9.12.4544.tar.gz)
- [Fedora 41](https://github.com/google/or-tools/releases/download/v9.12/or-tools_amd64_fedora-41_java_v9.12.4544.tar.gz)
- [Fedora 40](https://github.com/google/or-tools/releases/download/v9.12/or-tools_amd64_fedora-40_java_v9.12.4544.tar.gz)
- [Rockylinux 9](https://github.com/google/or-tools/releases/download/v9.12/or-tools_amd64_rockylinux-9_java_v9.12.4544.tar.gz)
- [Ubuntu 24.10](https://github.com/google/or-tools/releases/download/v9.12/or-tools_amd64_ubuntu-24.10_java_v9.12.4544.tar.gz)
- [Ubuntu 24.04 LTS](https://github.com/google/or-tools/releases/download/v9.12/or-tools_amd64_ubuntu-24.04_java_v9.12.4544.tar.gz)
- [Ubuntu 22.04 LTS](https://github.com/google/or-tools/releases/download/v9.12/or-tools_amd64_ubuntu-22.04_java_v9.12.4544.tar.gz)
- [Ubuntu 20.04 LTS](https://github.com/google/or-tools/releases/download/v9.12/or-tools_amd64_ubuntu-20.04_java_v9.12.4544.tar.gz)

##### macOS

- [macOS M1](https://github.com/google/or-tools/releases/download/v9.12/or-tools_arm64_macOS-15.3.1_java_v9.12.4544.tar.gz)
- [macOS Intel](https://github.com/google/or-tools/releases/download/v9.12/or-tools_x86_64_macOS-15.3.1_java_v9.12.4544.tar.gz)

##### Windows

- [Visual Studio 2022](https://github.com/google/or-tools/releases/download/v9.12/or-tools_x64_VisualStudio2022_java_v9.12.4544.zip)

### 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](https://github.com/google/or-tools).

### Docker

No official images for OR-Tools on the Google Cloud registry is provided.