11
from geopy.distance import vincenty

I just installed the geopy package 2.0.0, I want to use geopy.distance.vincenty() as this doc says. However, it returns ImportError: cannot import name 'vincenty' from 'geopy.distance'. And if I try

from geopy import distance

it becomes AttributeError: module 'geopy.distance' has no attribute 'vincenty'. About two or three months ago I used this on Google Colab, and it was fine. What happened? Could it be the latest version letting go this attribute?

Paw in Data
  • 1,262
  • 2
  • 14
  • 32

1 Answers1

26

Yes, it has been removed. Look at the changelog's Breaking Changes section which contains this entry:

Removed geopy.distance.vincenty, use geopy.distance.geodesic instead.

Weeble
  • 17,058
  • 3
  • 60
  • 75