Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Bạn có thể cài đặt OR-Tools cho Python từ trình quản lý gói Pip, tạo gói từ nguồn hoặc sử dụng kho lưu trữ SDK Python.
Tuỳ chọn Pip dễ sử dụng hơn, vì vậy, bạn nên sử dụng tuỳ chọn này trừ phi bạn dự định sửa đổi mã nguồn hoặc tuỳ chỉnh bản dựng.
Sử dụng gói Pip
Hướng dẫn sau đây giải thích cách sử dụng OR-Tools cho Python bằng các gói Pip đã phát hành:
[null,null,["Cập nhật lần gần đây nhất: 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)"]]