when I don’t do python I thought I have to install pip packages in IDLE

only for python to scream this on my console

  File "<stdin>", line 1
    pip install tensorflow
        ^
SyntaxError: invalid syntax
>>> 

comments

rookie mistake!!1!