Getting Started

Contents

Getting Started#

The getting started guide aims to get you using pint productively as quickly as possible.

Want to try it before installing anything? Head over to Try Pint in your browser to run Pint directly in your browser.

Installation#

Pint runs on Python 3.12+. It only depends on a couple small packages for its core functionality: - flexparser and flexcache for parsing unit definition files - typing_extensions for better compatibility with all supported Python versions - platformdirs for finding platform-dependent cache paths

Beyond this minimal setup, pint supports interoperability with other libraries, such as numpy and uncertainties, that are considered optional dependencies.

Prefer pip?

pint can be installed via pip from PyPI.

Working with conda?

pint is part of the Conda-Forge channel and can be installed with Anaconda or Miniconda:

That’s all! You can check that Pint is correctly installed by starting up python, and importing Pint:

>>> import pint
>>> pint.__version__