Forums

pip3 install error

Trying to install a librarie (InstagramAPI) with the console

SyntaxError: invalid syntax

pip3 install --user InstagramAPI File "<stdin>", line 1 pip3 install --user InstagramAPI ^ SyntaxError: invalid syntax

i dont know what to do.

You have to run it in a Bash console, not a Python console.

+1 to what @dull says -- I'd also recommend using a specific version for pip -- that is, pip3.7 or pip3.6, depending on the Python version you're using to run your code. pip3 might not install packages for the version you're expecting.