Installation on Windows
--------------------------

#. Download and install the desired Python version. The versions currently supported are:
    * `Python 3.13 <https://www.python.org/ftp/python/3.13.0/python-3.13.0-amd64.exe>`_
    * `Python 3.12 <https://www.python.org/ftp/python/3.12.7/python-3.12.7-amd64.exe>`_
    * `Python 3.10 <https://www.python.org/ftp/python/3.10.11/python-3.10.11-amd64.exe>`_
    * `Python 3.8 <https://www.python.org/ftp/python/3.8.10/python-3.8.10-amd64.exe>`_

#. Make sure to add the path to `python.exe` to your PATH variable like:

    .. code-block:: console

       $ set PATH=c:\[PYTHON_INSTALL_DIR];%PATH%

#. Download the zip file containing the latest whl file, example programs, and the html documentation and unzip the file to any location on your PC.
    * `BFModule for Windows BitFlow SDK 6.8 <https://www.bitflow.com/downloads/BFModule_Win_Release_SDK6.8.zip>`_
    * `BFModule for Windows BitFlow SDK 6.6 <https://www.bitflow.com/downloads/BFModule_Win_Release_SDK6.6.zip>`_
    * `BFModule for Windows BitFlow SDK 6.5 <https://www.bitflow.com/downloads/BFModule_Win_Release_SDK6.5.zip>`_

#. Navigate to the unzipped folder location.

    .. code-block:: console

       $ cd [Unzip folder location]

#. [Optional]
    Create a virtual environment using the command:

        .. code-block:: console

            $ python.exe -m venv [venv-name]
					
    To activate the virtual environment run the following command:

        .. code-block:: console

            $ [venv-name]\Scripts\activate

#. To install **BFModule** using the wheel file:

    .. code-block:: console

        (venv-name) $ python.exe -m pip install BFModule-X.x.x-cpXX-cpXX-win_amd64.whl

Where, BFModule-X.x.x-cpXX-cpXX-win_amd64.whl is the name of the WHL file in the extracted folder.
