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?
Yes, it has been removed. Look at the changelog's Breaking Changes section which contains this entry:
Removed
geopy.distance.vincenty
, usegeopy.distance.geodesic
instead.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With