Installation
Installing IceCream is straightforward using pip
, the standard Python package installer.
Standard Installation
Open your terminal and run the following command:
pip install icecream
This will download and install the latest version of IceCream from the Python Package Index (PyPI).
Dependencies
IceCream relies on a few other excellent libraries to provide its features. These will be installed automatically when you install icecream
.
colorama
: For cross-platform colored terminal text.pygments
: For syntax highlighting the output.executing
: To reliably locateic()
calls in the source code and extract variable/expression names.asttokens
: A dependency ofexecuting
that helps map AST nodes to source code text.
Supported Python Versions
IceCream is tested and supported on the following Python versions:
- Python 3.8
- Python 3.9
- Python 3.10
- Python 3.11
- Python 3.12
- Python 3.13
- PyPy3
As per the setup.py
file, IceCream has dropped support for Python versions prior to 3.8.