[[["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 various Linux distributions, specifically targeting the x86_64 architecture.\u003c/p\u003e\n"],["\u003cp\u003eBefore installing OR-Tools, ensure you have Python 3.8+ and pip installed, with distribution-specific commands provided for installation.\u003c/p\u003e\n"],["\u003cp\u003eOR-Tools can be easily installed using pip with the command \u003ccode\u003epython3 -m pip install ortools\u003c/code\u003e, and it's recommended to use a virtual environment.\u003c/p\u003e\n"],["\u003cp\u003eYou can validate your OR-Tools installation by running \u003ccode\u003epython3 -c "import ortools; print(ortools.__version__)"\u003c/code\u003e, which should print the installed version.\u003c/p\u003e\n"]]],["This document outlines how to install, uninstall, and validate the OR-Tools library for Python on Linux. OR-Tools is compatible with various Linux distributions including Alpine, Centos, Debian, Fedora, OpenSuse, and Ubuntu (only 64-bit). Installation requires Python 3.8+ and involves using `pip` (`python3 -m pip install ortools`). To uninstall, run `python3 -m pip uninstall ortools`. Validate the installation with `python3 -c \"import ortools; print(ortools.__version__)\"`. Prerequisites include specific commands to install Python for each distribution.\n"],null,["Introduction\n\nThis guide explains how to install OR-Tools for Python on Linux.\n\nAlthough these instructions might also work on other Linux variants, we\nhave only tested them on machines meeting the following requirements:\n\n\n- Alpine Edge 64-bit (x86_64)\n- Centos 7 LTS 64-bit (x86_64)\n- Debian SID 64-bit (x86_64)\n- Debian 11 (bullseye) 64-bit (x86_64)\n- Fedora 38 64-bit (x86_64)\n- Fedora 37 64-bit (x86_64)\n- OpenSuse Leap 64-bit (x86_64)\n- Ubuntu 24.10 64-bit (x86_64)\n- Ubuntu 22.04 LTS 64-bit (x86_64)\n- Ubuntu 20.04 LTS 64-bit (x86_64)\n\n\u003cbr /\u003e\n\n| **Note:** OR-Tools only provides archives for the **x86_64** (also known as **amd64**) architecture.\n\nPrerequisites\n\nThe following sections describe the prerequisites for installing OR-Tools.\n\nPython\n\nYou must have Python 3.8+ installed.\n\nTo install Python 3.8+, open a terminal window and enter: \n\nAlpine \n\n apk add python3-dev py3-pip py3-wheel\n\nCentos \n\n sudo yum install -y python3 python3-devel python3-pip numpy\n\nDebian \n\n sudo apt install -y python3-dev python3-pip python3-venv\n\nFedora \n\n sudo dnf install -y python3-devel python3-pip python3-venv\n\nFedora \n\n sudo dnf install -y python3-devel python3-pip python3-venv\n\nOpenSUSE \n\n sudo zypper install -y python3-devel python3-pip python3-wheel\n\nUbuntu \n\n sudo apt install -y python3-dev python3-pip python3-venv\n\nUbuntu \n\n sudo apt install -y python3-dev python3-pip python3-venv\n\nUbuntu \n\n sudo apt install -y python3-dev python3-pip python3-venv\n\n\u003cbr /\u003e\n\nYou can check your Python 3 installation using: \n\n python3 --version\n python3 -c \"import platform; print(platform.architecture()[0])\"\n python3 -m pip --version\n\nInstalling OR-Tools\n\nAssuming the prerequisite software is installed on your Linux, take the\nfollowing steps: \n\n python3 -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\nUninstalling OR-Tools\n\nTo uninstall OR-Tools, issue the following commands: \n\n python3 -m pip uninstall ortools\n\nValidate your installation\n\nTo test your Python installations, open a terminal window. Then enter the\nfollowing command:\n\n\n python3 -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)."]]