How to Install glob in Python in Windows?
Last Updated :
23 Jul, 2025
The Python Glob module searches all path names looking for files matching a specified pattern according to the rules dictated by the Unix shell.
In this article, we will look into, how to install the glob module on Windows.
Pre-requisites:
The only thing that you need for installing the glob module on Windows are:
- Python
- PIP or Conda (depending upon user preference)
Installing glob Module on Windows using Conda:
If you want the installation to be done through conda, open up the Anaconda Powershell Prompt and use the below command:
conda install -c anaconda glob2
Type y for yes when prompted.
You will get a similar message once the installation is complete:
Make sure you follow the best practices for installation using conda as:
- Use an environment for installation rather than in the base environment using the below command:
conda create -n my-env
conda activate my-env
Note: If your preferred method of installation is conda-forge, use the below command:
conda config --env --add channels conda-forge
Verifying glob Module Installation on Windows using Conda:
To verify if glob library has been successfully installed in your system run the below command in Anaconda Powershell Prompt:
conda list glob2
You'll get the below message if the installation is complete:

Installing glob Module on Windows using PIP:
If you want the installation to be done through PIP, open up the Command Prompt and use the below command:
pip install glob2
You will get a similar message once the installation is complete:

Verifying glob Module Installation on Windows using PIP:
To verify if glob module has been successfully installed in your system run the below command in Command Prompt:
python -m pip show glob2
You'll get the below message if the installation is complete:
Similar Reads
How to Install Gekko In Python on Windows? In this article, we will learn how to install Gekko in Python on Windows . GEKKO is a Python package for machine learning and optimization of mixed-integer and differential-algebraic equations. It is coupled with large-scale solvers for linear, quadratic, nonlinear, and mixed-integer programming (LP
2 min read
How to Install Eli5 in Python on Windows? Eli5 is an open-source and cross-platform Python library available for various operating systems including Windows, Linux, and macOS, written to easily and quickly debug machine learning classifier models to explain their predictions. It provides support for machine learning frameworks and packages
2 min read
How to Install Python docutils in Windows? Docutils is an open-source text processing system written in Python. It is used to process simple text or plaintext documents into useful formats like LaTex, OpenDocument, HTML, XML, etc. It is easy to use and easy to read, and general and special purpose use. So, in this article, we will be looking
2 min read
How to Install PyQt for Python in Windows? In this article, we will be looking at the stepwise procedure to install the PyQt for python in Windows. PyQt is a Python binding of the cross-platform GUI toolkit Qt, implemented as a Python plug-in. PyQt is free software developed by the British firm Riverbank Computing. Features of PyQt: There ar
2 min read
How to Install CMake for Windows in Python? CMake is a cross-platform free and open-source software tool for managing the build process of software using a compiler-independent method. It supports directory hierarchies and applications that depend on multiple libraries. Installation of CMake CMake in Python can be easily installed with the us
1 min read
How to Install Jmespath in Python in Windows? Jmespath is known as the JSON query language for Python. It is used to get the required data from the JSON document or dictionary easily. This library is available for Python as well as other programming languages so you can use it in many places according to the need. In this article, we will be lo
2 min read