Install#

This chapter describes how to install icalendar as a Python package for use in your projects.

Python package with pip#

The following command will install the icalendar package with pip.

pip install icalendar

If installation is successful, you will be able to import the iCalendar package from a Python interpreter as shown.

>>> import icalendar

Distribution packages#

The icalendar package is also published in many Linux distributions. The following badge shows where it is available, and which versions are packaged.

Packaging status of icalendar across distributions

Repology is a service that tracks the availability and versions of packages across many Linux distributions. View the packaging status of icalendar across distributions.

Debian or Ubuntu#

You can install the python-icalendar package for Debian or its derivatives.

sudo apt-get install python3-icalendar

Arch Linux#

On Arch Linux and derivatives, the package is available in the community repository.

sudo pacman -S python-icalendar

Fedora#

You can install the python3-icalendar package for Fedora or its derivatives.

sudo dnf install python3-icalendar