Open In App

How to Install python-dateutil on Windows?

Last Updated : 25 Apr, 2022
Improve
Improve
Like Article
Like
Save
Share
Report

The dateutil package, which is available in Python 2 and Python 3, adds a lot of features to the conventional DateTime module. Or, to put it another way, it extends Python’s DateTime module. It calculates relative deltas such as next month, next year, previous week, and so on. Its time zone data comes from Olson’s database. We will learn how to install python-dateutil on the Windows operating system in this article. 

Installing the python-dateutil package on Windows using PIP

Requirements:

  1. Python3   
  2. Python3-pip

To install the python-dateutil package in Windows follow the following steps:

Step 1: Firstly, we will check the current version of Python3 using the following command.

python –version

Checking-the-current-version

 

Step 2: Now, we will check the version of the pip package manager, which is responsible for installing the external packages. Use the below command to check the version of the pip manager

pip –version

Checking-the-pip-version

 

Step 3: Now using the PIP manager we are going to install the python-dateutil package. So for the installation run the following command on the terminal.

pip install python-dateutil

Installing-the-python-dateutil-package

 

Verifying the installation of the python-dateutil package

After installing the package, the next important step is to check the installation of the python-dateutil package is successful or not. So here, we are simply getting the information of the installed package (python-dateutil) by executing the below command on the terminal itself.

python -m pip show python-dateutil

The below output will be displayed after the successful installation of the python-dateutil package on your Windows machine.

Verifying-the-installation-of-the-python-dateutil-package

 


Like Article
Suggest improvement
Share your thoughts in the comments

Similar Reads