Restez organisé à l'aide des collections
Enregistrez et classez les contenus selon vos préférences.
Vous pouvez installer OR-Tools pour Python à partir du gestionnaire de packages Pip, le compiler à partir de la source ou utiliser l'archive du SDK Python.
L'option PIP est plus simple. Nous vous la recommandons donc, sauf si vous prévoyez de modifier le code source ou de personnaliser la compilation.
Utiliser des packages Pip
Les guides suivants expliquent comment utiliser OR-Tools pour Python à l'aide des packages Pip publiés:
Sauf indication contraire, le contenu de cette page est régi par une licence Creative Commons Attribution 4.0, et les échantillons de code sont régis par une licence Apache 2.0. Pour en savoir plus, consultez les Règles du site Google Developers. Java est une marque déposée d'Oracle et/ou de ses sociétés affiliées.
Dernière mise à jour le 2024/08/09 (UTC).
[null,null,["Dernière mise à jour le 2024/08/09 (UTC)."],[[["\u003cp\u003eOR-Tools for Python can be installed via Pip, built from source, or using a Python SDK archive, with Pip being the recommended method for most users.\u003c/p\u003e\n"],["\u003cp\u003eBuilding from source is necessary if you intend to use third-party solvers or customize OR-Tools.\u003c/p\u003e\n"],["\u003cp\u003eDetailed installation guides are available for Linux, macOS, and Windows operating systems, covering Pip packages, source builds, and binary distributions.\u003c/p\u003e\n"]]],["OR-Tools for Python can be installed via Pip, by building from source, or using a binary distribution. Pip is recommended for ease of use, unless source code modification or build customization is needed. Building from source is required when using a third-party solver. Installation guides are provided for each method on Linux, MacOS, and Windows. Each guide explains how to proceed with the installation process depending on the OS and the type of installation.\n"],null,["# OR-Tools for Python\n\nYou can install OR-Tools for Python either from the Pip package\nmanager, build it from source or use the Python SDK archive.\nThe Pip option is easier, so we recommend it unless you plan to modify\nthe source code or customize the build.\n| **Note:** If you plan to use a third-party solver with OR-Tools, you need to build OR-Tools from source.\n\nUsing Pip packages\n------------------\n\nThe following guides explain how to use OR-Tools for Python using the\npublished Pip packages:\n\n- [Using Pip package on Linux](/optimization/install/python/pkg_linux)\n- [Using Pip package on MacOS](/optimization/install/python/pkg_mac)\n- [Using Pip package on Windows](/optimization/install/python/pkg_windows)\n\nBuild from Source\n-----------------\n\nThe following guides explain how to build from source OR-Tools for Python\n:\n\n- [Source installation on Linux](/optimization/install/python/source_linux)\n- [Source installation on MacOS](/optimization/install/python/source_mac)\n- [Source installation on Windows](/optimization/install/python/source_windows)\n\nBinary distributions\n--------------------\n\nThe following guides explain how to install OR-Tools for Python from a\nbinary distribution:\n\n- [Binary installation on Linux](/optimization/install/python/binary_linux)\n- [Binary installation on MacOS](/optimization/install/python/binary_mac)\n- [Binary installation on Windows](/optimization/install/python/binary_windows)"]]