The glob module finds all the pathnames matching a specified pattern according to the rules used by the Unix shell, although results are returned in arbitrary order.
First of all, we will install Python3 on our Linux Machine.
Now, we install the pip module which is required to install and manage the packages in Python3. Use the following command for installation:
sudo apt-get install python3-pip python3-dev
pip3 --version
Now, install the Python-Glob package with the help of the following command:
sudo pip3 install glob2
or
sudo apt-get install python-glob2