Google Colab Syntax Error: invalid syntax

Viewed 6767

I found out python library 'haversine', used to calculate distance between 2 geometry coordinates. I put a comment in Google Colab Jupyter Notebook and run 'pip install haversine' like below.

Surprisingly, I got a 'Syntax Error'. I remove the comment and the command run successfully. What is the issue?

enter image description here

1 Answers

Well to install any library in google colab you need to put an exclamation mark before statement like following;

!pip install haversine
Related