Skip to main content
Pydantic Docs

Search documentation

Type to search this documentation.

On this pageOverview

Installation

Installation is as simple as:

pip
pip install pydantic
uv
uv add pydantic

Pydantic has a few dependencies:

If you've got Python 3.10+ and pip installed, you're good to go.

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

Bash
conda install pydantic -c conda-forge

Pydantic has the following optional dependencies:

  • email: Email validation provided by the email-validator package.
  • timezone: Fallback IANA time zone database provided by the tzdata package.

To install optional dependencies along with Pydantic:

pip
# with the `email` extra:
pip install 'pydantic[email]'
# or with `email` and `timezone` extras:
pip install 'pydantic[email,timezone]'
uv
# with the `email` extra:
uv add 'pydantic[email]'
# or with `email` and `timezone` extras:
uv add 'pydantic[email,timezone]'

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

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

pip
pip install 'git+https://github.com/pydantic/pydantic@main'
# or with `email` and `timezone` extras:
pip install 'git+https://github.com/pydantic/pydantic@main#egg=pydantic[email,timezone]'
uv
uv add 'git+https://github.com/pydantic/pydantic@main'
# or with `email` and `timezone` extras:
uv add 'git+https://github.com/pydantic/pydantic@main#egg=pydantic[email,timezone]'
Suggest an edit

Propose a replacement for this page. The site team reviews it before applying any changes.

Export
Documentation menu