---
title: "Install the Shogun Post Python module"
canonical: "https://help.vicon.com/space/ShogunPost121/1253736468/Install%20the%20Shogun%20Post%20Python%20module"
format: markdown
---
To use Python and the Shogun Post Python modules, you must first install them.

Both Python 2 and Python 3 are supported. Vicon recommends that you use the latest full release of Python 3, unless your project requires you to use a specific version of Python.

> ⚠️ With Shogun 1.4 and later, Python 3.0 and later is fully supported. Legacy support only is provided for Python 2.7.

> Macro (scroll-only)
> 
> > Macro (toc)

> Macro (scroll-pagebreak)

## Install Python

**To install Python 2 or 3:**

1. Go to [Python.org/Downloads/](https://www.python.org/downloads/)
2. Locate the required version and install Python, ensuring that **Add Python #.# to PATH** is selected:

To use a Python interpreter within Shogun Post, you must specify it in the Shogun Post **Preferences** dialog box, at the bottom of the **Directories** tab.

> ![Specifying the Python interpreter in Vicon Shogun Post.](media://16537dc1-0f23-4b28-958c-33dd7b9e30be)

> Macro (scroll-pagebreak)

## Install the Shogun Post Python modules

Install the Shogun Post SDK into any instance of Python you wish to use with Shogun. 

Find the Shogun Post Python modules in the following locations and use the installation utility provided:

- For 64-bit installations of the Python interpreter:  
*C:\Program Files\Vicon\ShogunPost#.#\SDK\Win64\install_vicon_shogun_post_sdk.bat*
- For 32-bit installations of the Python interpreter*:*  
*C:\Program Files\Vicon\ShogunPost#.#\SDK\Win32\install_vicon_shogun_post_sdk.bat*

> ✅ **Tip**  
> ✅ Depending on your current permissions, to run the installer, you may need to right-click the .*bat* file and select **Run as administrator**.

> Macro (16dcb1b2-c6fb-4c23-a096-38455b87e6a8/1fa5e51a-a28e-46e1-9b5c-734b339f025f/static/scroll-pagebreak)

These scripts install the modules using the default *pip* tool.

> ![image](media://6b1905b2-d9b3-4466-a90c-2dd6f872aef6)

> ⚠️ **Note**   
> ⚠️ The same module supports Python 2 and Python 3.


### Shogun Post Python modules installed

Shogun Post installs two Python modules:

- **ShogunPostSDK**. This folder contains the main Shogun PostSDK, and is the module that is most commonly used.
- ** ViconShogunPost**. This module contains the Shogun Post implementation of a common Python SDK, shared by several Vicon products.

> Macro (16dcb1b2-c6fb-4c23-a096-38455b87e6a8/1fa5e51a-a28e-46e1-9b5c-734b339f025f/static/scroll-pagebreak)

## Check that the Python modules installed correctly

To test that the Shogun Post Python modules installed correctly, run Python and try the following import statement:

- `import ViconShogunPost`
- `import ViconShogunPostSDK`
  If this imports without any errors then the installation has been successful.