4.6.1 Install Python for Windows

Steps to install Python on Windows.

Note:

Python 3.13.2 or higher is required to use OML4Py Client 2.1 on Windows.

Steps for downloading and installating Python 3.13.2:

  1. Go to the Python website Python website and scroll down to the Files section. Download the Windows system 64-bit, Windows installer (64-bit). The downloaded file name should be "python-3.13.2-amd64".
  2. Run the downloaded installer by double-clicking the file. The following the Python setup screen will appear:
  3. After running the Python installer:
    • If you check "Add python.exe to PATH":

      The installer adds the installation directory and its Scripts\ location to your system's PATH. This lets you to type python to start the interpreter, and pip to install packages directly from the command line. You can then click Install Now and follow the on-screen instructions. Once installation finishes, Python is ready to use.

    • If you leave "Add python.exe to PATH" unchecked:

      The installer will not update your PATH. This means you’ll need to manually add the installation directory (and the Scripts\ folder) to the PATH environment variable before you can run python or pip from the command line. To manually modify the PATH using the directions in See: Setting environment variables.

      For example, if you installed Python3.13.2 to the default directory C:\Users\<YourUsername>\AppData\Local\Programs\Python\Python313\, you can run the following commands to set up environment variable:
      set PYTHONHOME = C:\Users\<YourUsername>\AppData\Local\Programs\Python\Python313\
      set PATH=%PATH%;%PYTHONHOME%;%PYTHONHOME%\Scripts\

      This PATH setting will only remain for the current session. To make it permanent, you must add the instant client path to the Windows environment variables.

      To set the environment variable permanently on Windows 11, follow these steps:

      1. To configure the Python environment variables permanently: Follow the navigation path. Choose from :

        • Navigation path:Start → Settings → System → About → (scroll down) → Advanced system settings → Advanced tab → Environment Variables
        • Alternate shortcut:Press Win + r type sysdm.cpl, and press Enter to open System Properties → Advanced → Environment Variables directly
      2. Under the User variables, click New. Add the Variable name: PYTHONHOME and Variable value: C:\Users\<YourUsername>\AppData\Local\Programs\Python\Python313.
      3. If you did not add PYTHONHOME to PATH during the Python installation, in the same User variables section, select Path, then click Edit → New, and add: %PYTHONHOME%%PYTHONHOME%\Scripts. Click OK to close all dialogs.
      4. Reopen your terminal for the changes to take effect.
Verify the Python Installation

You can now start Python by running the command python in a command shell.

python
Python 3.13.2 (tags/v3.13.2:6cb20a2, Jun 11 2025, 16:15:46) [MSC v.1943 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
To verify the directory where Python is installed, use the sys.executable command from the sys package. For example:
import sys
print(sys.executable)
C:\Users\<YourUsername>\AppData\Local\Programs\Python\Python313\python.exe

This returns the absolute path of the Python executable binary.