Installing khal

If khal is packaged for your OS/distribution, using your system’s standard package manager is probably the easiest way to install khal.

If a package isn’t available (or it is outdated) you need to fall back to one of the methods mentioned below.

Install via Python’s Package Managers

Since khal is written in python, you can use one of the package managers available to install python packages, e.g. pip.

You can install the latest released version of khal by executing:

pip install khal

or the latest development version by executing:

pip install git+git://

While this should take care of installing all required dependencies, installing lxml may fail. In that case have a look under Requirements. This should also take care of installing all required dependencies.


khal is written in python and, at the moment, only runs in python 2.7. Make sure you have sqlite3 (normally available by default), icalendar, urwid (>0.9), pyxdg, vdirsyncer installed.

If you are installing python via pip or from source, be aware that since khal indirectly depends on lxml you need to either install it via your system’s package manager or have python’s and libxml2’s headers development packages installed.