[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-06-05 UTC."],[[["\u003cp\u003eThis guide provides instructions for installing Google's OR-Tools for Python on Windows 10 64-bit systems.\u003c/p\u003e\n"],["\u003cp\u003ePrerequisites include having Microsoft Visual C++ Redistributable for Visual Studio 2022 (x64) and a compatible 64-bit Python version (3.8.x - 3.11.x) installed.\u003c/p\u003e\n"],["\u003cp\u003eOR-Tools can be installed using pip with the command: \u003ccode\u003epython -m pip install ortools\u003c/code\u003e, preferably within a virtual environment.\u003c/p\u003e\n"],["\u003cp\u003eValidation of the installation can be done by running \u003ccode\u003epython -c "import ortools; print(ortools.__version__)"\u003c/code\u003e in a x64 Native Tools Command Prompt.\u003c/p\u003e\n"]]],["OR-Tools for Python on Windows requires a 64-bit Windows 10 machine with Microsoft Visual Studio 2022 and the Visual C++ Redistributable (x64). Python 3.8.x to 3.11.x (64-bit) is also needed, along with pip 9.01 or higher. Installation is done via `python -m pip install ortools`, preferably within a virtual environment. Verify installation with `python -c \"import ortools; print(ortools.__version__)\"`. Uninstall using `python -m pip uninstall ortools`.\n"],null,["# Installing OR-Tools for Python from Binary on Windows\n\nIntroduction\n------------\n\nThis guide explains how to install OR-Tools for Python on Windows.\n\nAlthough these instructions might also work on other Windows variants, we\nhave only tested them on machines meeting the following requirements:\n\n\nWindows 10 64-bit (x86_64) with:\n\n- Microsoft Visual Studio Enterprise 2022\n- Microsoft Visual Studio Community 2022 Preview 2 or above\n\n\u003cbr /\u003e\n\n| **Note:** OR-Tools only supports the **x86_64** (also known as **amd64**) architecture.\n\nPrerequisites\n-------------\n\nThe following sections describe the prerequisites for installing OR-Tools.\n\n### Microsoft Visual C++ Redistributable\n\nYou must have the\n[Microsoft Visual C++ Redistributable for Visual Studio 2022](https://visualstudio.microsoft.com/downloads/?q=Visual+C%2B%2B+Redistributable+for+Visual+Studio) (select the x64 version) installed\non your computer, since OR-Tools library for Python is a wrapper for the\nC++ native library.\n\n### Python\n\nYou must have one of the following versions of Python installed:\n\n- [Python 3.11.x 64-bit](https://www.python.org/downloads/release/python-3110/)\n- [Python 3.10.x 64-bit](https://www.python.org/downloads/release/python-3100/)\n- [Python 3.9.x 64-bit](https://www.python.org/downloads/release/python-390/)\n- [Python 3.8.x 64-bit](https://www.python.org/downloads/release/python-380/)\n\nThen verify that you have pip 9.01 or higher available in your PATH: \n\n python --version\n python -c \"import platform; print(platform.architecture()[0])\"\n python -m pip --version\n\nInstalling OR-Tools\n-------------------\n\nAssuming the prerequisite software is installed on your Windows, take the\nfollowing steps: \n\n python -m pip install ortools\n\n| **Tip:** You should install `ortools` in a [virtual environment](https://packaging.python.org/en/latest/guides/installing-using-pip-and-virtual-environments/#)\n\n### Uninstalling OR-Tools\n\nTo uninstall OR-Tools, issue the following commands: \n\n python -m pip uninstall ortools\n\nValidate your installation\n--------------------------\n\nTo test your Python installations, open a x64 Native Tools Command Prompt. Then enter the\nfollowing command:\n\n\n python -c \"import ortools; print(ortools.__version__)\"\n\n\u003cbr /\u003e\n\nIf it runs successfully, you are ready to\n[get started with OR-Tools](../../introduction/python)."]]