IBMDecisionOptimization / docplex-examples

These samples demonstrate how to use the DOcplex library to model and solve optimization problems.
https://ibmdecisionoptimization.github.io/
Apache License 2.0
396 stars 228 forks source link

example failed at library import: chicago_coffee_shops (jupyter/chicago_coffee_shops.ipynb) #2

Closed smarterway closed 6 years ago

smarterway commented 6 years ago

In running (cell):

Simple distance computation between 2 locations.

from geopy.distance import great_circle

Receiving error: ModuleNotFoundError Traceback (most recent call last)

in () 1 # Simple distance computation between 2 locations. ----> 2 from geopy.distance import great_circle 3 4 def get_distance(p1, p2): 5 return great_circle((p1.y, p1.x), (p2.y, p2.x)).miles ModuleNotFoundError: No module named 'geopy' Please help. Thanks.
vlkong commented 6 years ago

As stated in step 4 of the sample, we use module geopy to compute distances. Cell #2 of step 4 should have installed geopy. You will need to restart your kernel after running that cell (unless you run your notebook in an Anaconda like environment). Can you please restart your kernel and tell me if it works ?

vlkong commented 6 years ago

Closing the issue, since there's no news or nothing new on this.