Kinetics Toolkit is hosted on both PyPi and conda-forge. However, Kinetics Toolkit relies on
ezc3d to read c3d files, which is
distributed only on conda-forge. The recommended installation method is therefore using conda-forge.
Download and install Anaconda or Miniconda with python 3.8 or newer.
Create a new environment (recommended): open an Anaconda Prompt (on Windows) or a terminal (on macOS and Linux) and type these commands one by one to create a
ktkvirtual environment and install Kinetics Toolkit in this environment.
conda create -n ktk conda activate ktk conda install -c conda-forge kineticstoolkit ezc3d
Interactive functions can be tricky in Python. Kinetics Toolkit’s interactive functions make use of IPython’s integration of Matplotlib/Qt5’s event loop, which is completely supported in the Spyder IDE. Therefore I recommend using Spyder, but any IDE that uses IPython should also work well.
conda install -c conda-forge spyder
Choose the Qt5 backend for IPython: if you are using the Spyder IDE, go to the Spyder’s preferences, to the IPython console item, then to the Graphics pane. In the Graphics backend box, select Qt5. Restart Spyder.
Verify that you are able to import Kinetics Toolkit in the interactive IPython console. This should work without error:
>>> import kineticstoolkit or >>> import kineticstoolkit.lab as ktk