Local installation

  • Total installation time is around 10 minutes.

  • The first import of keypoint_moseq after installation can take a few minutes.

  • If you experience any issues, reach out to us on slack! We’re happy to help.

Note

If using Windows, make sure to run all the commands below from an Anaconda Prompt.

Note

Keypoint-MoSeq supports the same platforms as jax. That is, it supports CPU and GPU installations on linux systems, and CPU installations on MacOS and Windows systems. GPU on WSL2 is considered ‘experimental’.

Create a new conda environment. Keypoint-MoSeq supports Python 3.10 to 3.14:

conda create -n keypoint_moseq python=3.12
conda activate keypoint_moseq

Then use pip to install the version of keypoint moseq that you want:

pip install keypoint-moseq # CPU only
pip install "keypoint-moseq[cuda]" # GPU with CUDA 12

To run keypoint-moseq in jupyter, either launch jupyterlab directly from the keypoint_moseq environment or register a globally-accessible jupyter kernel as follows:

python -m ipykernel install --user --name=keypoint_moseq

To check the installation, run kpms.check_installation() (after import keypoint_moseq as kpms) in a notebook started from this environment. It prints the installed versions and the devices JAX can use, and explains any problem it finds.