Install requirements on Windows

This tutorial provides steps to install DepthAI on a Windows 10 system

  1. Install Python 3.9 from the Microsoft Store (direct link).

    Windows store

    Once the installation is complete you need to disable the App Execution Aliases for both python.exe and python3.exe.

    This can be done by going to start and typing Manage app and choose the Manage app execution aliases entry.

    Search execution

    From there you turn off the App Installer alias for both python.exe and python3.exe.

    Execution aliases
  2. Install Git. You can find the latest version here.

    Git install
  3. Install CMake. You can find the latest version here.

    CMake install
  4. Install Microsoft Visual Studio 2017 (direct download link here)

    The 2017 version is specifically required to build the OpenCV Python package from PyPI

    Note that you only need Windows 10 SDK, Visual C++ for CMake and VC++ 2017, not the whole package (see an image below)

    Visual Studio install
  5. Open Windows PowerShell

    You can do that by typing PowerShell in the searchbar

    Open PowerShell
  6. Upgrade Pip

    Latest pip version is required in order to correctly install PyPI requirements.

    To upgrade pip, type the following command in the powershell

    python3.exe -m pip install -U pip
    
    Update Pip

    After successful install, you should see pip installed in the latest version

    Update Pip success
  7. Run the DepthAI demo code

    See Verify installation for details

Got questions?

We’re always happy to help with code or other questions you might have.