Skip to content
Switch branches/tags
Go to file
Cannot retrieve contributors at this time

Klamp't Tutorial: Installation on Windows

In this tutorial we learn how to install Klamp't, step by step.

Difficulty: easy

Time: 10-30 minutes

Prebuilt Python libraries

To install the Klamp't Python bindings:

  1. Install Python 2.7+ or 3.7+ from Both 32-bit (x86) and 64-bit (x64) versions are supported.
  2. Install Klampt using pip install klampt
  3. Install PyOpenGL using pip install PyOpenGL, or use the Win32 installer from
  4. Install PyQt5 or PyQt4. In Python 3.x this is easy as pip install PyQt5, but users of Python 2.x will need to download the appropriate unofficial PyQt4 build here.

You're done! As a test, run "cmd" from the start menu,

git clone
cd Klampt-examples/Python/demos

Windows, from binaries (recommended)

To run apps and obtain the C++ include/static library files:

  1. First, install the x86 version of the Visual Studio 2015 Runtime.
  2. Run the Klamp't installer.
  3. Optionally, install ffmpeg from this binary build, which will help you compile animations into MPEG movies.

Windows, from source

Due to the complexities of dependency management on Windows, building from source is much more challenging and not recommended unless you have extensive experience building packages on Windows via CMake. These instructions are also bound to go out of date occasionally.

  1. Install CMake.
  2. Obtain Visual Studio 2015.
  3. Visit and click "Clone on Desktop". Follow the on-screen instructions to download Git, if necesary, and clone the Klamp't Git repository.
  4. Following the same steps as above, clone the KrisLibrary Git repository from to the Klampt/Cpp/Dependencies folder as the target location.
  5. From, download the appropriate Win32 Klamp't dependencies for your Visual Studio version (both Release and Debug are recommended). Unpack into Klampt/Cpp/Dependencies.
  6. Run cmake-gui in your Klamp't folder, and set the build directory to Klampt/msvc. Correct any paths that cannot be found, and generate the Visual Studio project files.
  7. Open Klampt/msvc/Klampt.sln and build the "Klampt" and "apps" projects in Visual Studio.
  8. To build the Python bindings:
    1. Copy Klampt/msvc/Python/ into your Klampt/Python folder.
    2. Run the Visual Studio Command prompt as an administrator and navigate to Klampt/Python.
    3. For VS 2015 you must first enter "set VS90COMNTOOLS=%VS140COMNTOOLS%".
    4. Run "python install".