ImportError: No module named 'geopy' ipython-notebook

Viewed 40569

currently I need to make some distance calculation. For this I am trying the following on my ipython-notebook (version 4.0.4):

from geopy.distance import vincenty

ig_gruendau = (50.195883, 9.115557)
delphi = (49.99908,19.84481)

print(vincenty(ig_gruendau,delphi).miles)

Unfortunately I receive the following error when running the code above: ImportError: No module named 'geopy'

Since I am pretty new at python, I wonder how can I install this module (without admin rights) or what other simple options I do have for this calculations?

Thanks, ML

2 Answers

Even if you install using pip install command you still have to use:

conda install -c conda-forge geopy

This command is in the anaconda server so that it gets installed in the anaconda.

Related