'Error when installing python package from GitHub

I want to install a package from GitHub and I am following a guide from https://worldbank.github.io/connectivity_mapping/facebook_nbs/web_interface.html to do so. I copied and pasted the code but I keep getting this error:

git clone https://github.com/joaopalotti/pySocialWatcher 
File "<ipython-input-1-cee23b0d65fc>", line 1
    git clone https://github.com/joaopalotti/pySocialWatcher
        ^
SyntaxError: invalid syntax

Does anyone know what the problem is? I am doing this in jupyter notebook and I am very new to Python. Do I need to run any lines of code before this one to make it work?



Solution 1:[1]

In order to install PySocialWatcher in your system, we can use the following commands:

That means command line, where git and python are installed and in your $PATH.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 VonC