Python – Module not found error: No module named ‘gmaps’

Module not found error: No module named ‘gmaps’… here is a solution to the problem.

Module not found error: No module named ‘gmaps’

How to fix this, I have this code

from time import sleep
import numpy as np
import pygmaps

But Python gave rise to a ModuleNotFoundError as: ModuleNotFoundError: No module named 'gmaps'

I downloaded the pygmaps package in conda

using this command line code pip install git+https://github.com/thearn/pygmaps-extended downloaded the pygmaps package in conda and got the error again.

Solution

You just need to install gmaps from anaconda using the following command:

conda install -c conda-forge gmaps

Or this:

conda install -c conda-forge/label/gcc7 gmaps 

Enter this command at your conda prompt, not in your OS CLI or other CLIs.

Good luck

Related Problems and Solutions