pip is meant to be ran from the command line, not a Python REPL (or file). In VSCode, you can create a new terminal and try running pip or python3 -m pip. If you still have an issue, showing what your terminal looks like / how you are using pip may be helpful.
Specifically, I was trying to install pandera pip install pandera.
I was under the impression this could be done in the IDE (VS CODE) and I think that may still be the case, somehow. Per your advice, I just tried the install on the command line and it works fine.
That’s good enough for me for now.
Many thanks for your super quick reply/guidance on this!