This file describes how to use OR-Tools in python with the binary archives.
OR-Tools online documentation is here
Full installation instructions are located here
These modules have been tested under:
- CentOS 8 (64 bit).
- Debian 11 (64 bit).
- Fedora 33 and up (64 bit).
- Ubuntu 18.04 LTS and up (64 bit).
- MacOS 12.2 Monterey (64 bit).
- Microsoft Windows with Visual Studio 2022 (64-bit)
Upon decompressing the archive, you will get the following structure:
or-tools/
[LICENSE](LICENSE) <- Apache License
[README.md](README.md) <- This file
[examples/data/](examples/data) <- Data for the examples
[examples/python](examples/python) <- Python examples
[examples/notebook](examples/notebook) <- Jupyter/IPython notebooksTo install the package:
-
Make sure python and pip are installed
-
Make sure pip is up to date:
python -m pip -Vshould return 9.0.1 otherwise, run: python -m pip install --upgrade --user pip
- Fetch
ortoolsfrom Pypi:
python -m pip install --upgrade --user ortoolsIt should pull the latest version of OR-Tools.
To run a first example:
python examples/python/hidato_table.py