mercantile command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
mercantile: command not found
or when using sudo you get the following error message
sudo: mercantile: command not found
Solutions to mercantile: command not found
How To Fix mercantile: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu mercantile is provided by mercantile package.
mercantile is:
The mercantile module provides functions that respectively return the upper left corner and bounding longitudes and latitudes for XYZ tiles, spherical mercator x and y coordinates, tile containing a given point, and quadkey conversion functions for translating between quadkey and tile coordinates.
Also in mercantile are functions to traverse the tile stack. Named tuples are used to represent tiles, coordinates, and bounding boxes.
This package contains the mercantile utility.
To fix this problem, we can install more using the command below.
sudo apt-get -y install mercantile
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install mercantile.
sudo apt -y install mercantile
Or if you have aptitude installed you can use the following command.
sudo aptitude install mercantile
Summary
In this tutorial we learn how to fix mercantile command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.