Skip to content
You're viewing docs for v2.5. See the latest version →

Install

Installation is as simple as:

Terminal
pip install pydantic

Pydantic has a few dependencies:

If you’ve got Python 3.7+ and pip installed, you’re good to go.

Pydantic is also available on conda under the conda-forge channel:

Terminal
conda install pydantic -c conda-forge

Optional dependencies

Pydantic has the following optional dependencies:

To install optional dependencies along with Pydantic:

Terminal
pip install pydantic[email]

Of course, you can also install requirements manually with pip install email-validator.

Install from repository

And if you prefer to install Pydantic directly from the repository:

Terminal
pip install git+https://github.com/pydantic/pydantic@main#egg=pydantic
# or with extras
pip install git+https://github.com/pydantic/pydantic@main#egg=pydantic[email]