Before working with Polars, we must ensure the correct version of Polars is installed on our system. We can check if the correct Polars version is installed in the following ways:
Using the pip3 show
command
Using the __version__
attribute
pip3 show
commandLet’s look at how to check the currently installed version of Polars using the pip3 show
command.
pip3 install polars
pip3 show polars
__version__
attributeLet’s look at how to check the currently installed version of Polars using the __version__
attribute.
python3
import polars as pl
print(pl.__version__)
exit()
Run any of the methods listed above in the terminal below to check the installed Polars version.
Note: We’ve already installed Python in the terminal below. Execute the command
python3 --version
to check the Python version.