Why does “pip install” inside Python raise a SyntaxError?

I’m trying to use pip to install a package. I try to run pip install from the Python shell, but I get a SyntaxError. Why do I get this error? How do I use pip to install the package?

>>> pip install selenium
              ^
SyntaxError: invalid syntax

8 Answers
8

Leave a Comment