Installation

pyhctsa requires Python 3.10 or higher.

Using pip

The easiest way to install pyhctsa is using pip:

> pip install pyhctsa

This gives all 6406 features of the default feature set on Python 3.10 to 3.13. Two dependencies are used by only a few features. If either cannot be imported, the calculator skips those features and warns, naming the package to install, instead of failing. Each is installed only where it is known to publish a wheel, so that a failed build of either can never stop pyhctsa from installing. On other platforms (a Python version newer than those listed, or Windows on ARM) neither is installed, and the warning gives the command to add it.

ripser, for the 8 persistent-homology features (persistent_homology), is installed with pyhctsa. It publishes wheels for Python 3.10 to 3.14 on Linux, macOS and Windows (x64), so no compiler is needed. If your environment lacks it (after pip install --no-deps, for example), add it with:

> pip install ripser

hmmlearn, for the 34 hidden-Markov-model features (hmm_fit, hmm_compare_n_states), is installed with pyhctsa on Python 3.10 to 3.13. It does not yet publish wheels for Python 3.14, so there pyhctsa gives 6372 features. To get the other 34, install hmmlearn yourself, which builds it from source and needs a C++ compiler:

> pip install "pyhctsa[hmm]"

pyhctsa publishes no wheel for Intel Macs (macOS x86_64), so pip builds it from source there, which needs the Xcode Command Line Tools. On Intel Macs, use Python 3.10 to 3.13: numba, a required dependency, no longer publishes Intel Mac wheels and has none for Python 3.14.

From Source

You can also install pyhctsa directly from the source code:

git clone https://github.com/DynamicsAndNeuralSystems/pyhctsa.git
cd pyhctsa
pip install -e .

Verify Installation

To verify that pyhctsa is installed correctly, you can run:

pip show pyhctsa

If pyhctsa has been successfully installed, this shows its version, license and dependencies.