- Polars - Home
- Polars - Installation
- Polars - Expressions And Contexts
- Polars - Lazy vs Eager API
- Polars - Data Stucture and Data Types
- Polars Useful Resources
- Polars - Useful Resources
- Polars - Discussion
Python Polars - Installation
Polars can be installed on any operating system such as Windows, Linux, or macOS. This chapter will guide you through the step by step installation of Polars environment. You will need the following tools on your system −
- Python 3.8 or above
- pip (Python package manager)
- Code Editior
Step 1: Python Installation
Polars is a Python library, so first make sure Python is installed on your computer. If Python is not installed, follow this tutorial to install it: Python installation step by step.
After installation, open Command Prompt (Windows) or Terminal (Mac/Linux) and type the following commands to verify −
python --version
If Python is installed correctly, it will show the version of python that you have installed −
Step 2: pip Installation
Pip is a tool that helps you install Python libraries like Polars, pandas etc. Most of the Python versions already include pip.
To check it is installed or not open command prompt or Terminal and write −
pip --version
If pip is installed, it will show the path and version of pip where it is installed, for example −
But, if you get an error : 'pip is not recognized", it means you have not installed pip.
To install the pip you can refer this tutorial python pip.
Step 3: Install Polars in Python
To install the polars library open the command prompt and type −
pip install polars
It will install the latest version of polars library and its required dependencies.
Step 4: Verify the Installation of Polars
After installing the polars library, to verify it, open the python shell and type −
import polars as pl
print("succeffuly installed")
print(pl.__version__)
print("Hello world")
If it show the version, it means your installation of polars is successfully done as give below −
Step 5: Code Editior
Now, for writing the polars code, you can use any text editior or IDE. Some are given below as −
- VS Code(Visual Studio Code)
- PyCharm(IDE)
- Jupyter Notebook
Now, we can write our polars code. In the next chapter we will learn about the basic concepts of the polars library.