Skip to content

Installation

PyPI

Optype is available as optype on PyPI:

pip install optype

For optional NumPy support, ensure that you use the optype[numpy] extra. This ensures that the installed numpy and the required numpy-typing-compat versions are compatible with each other.

pip install "optype[numpy]"

See the optype.numpy docs for more info.

Conda

Optype can also be installed with conda from the conda-forge channel:

conda install conda-forge::optype

If you want to use optype.numpy, you should instead install optype-numpy:

conda install conda-forge::optype-numpy