0

I recently installed Python for a really small project that I'm working on, so in an effort to see if pip is installed, I run the commands that the website tells me to.

C:> py -version

But for some reason I keep getting a Syntax Error instead of the version of Python I'm currently running.

File "<stdin>", line 1
C:> py --version
  ^
SyntaxError: invalid syntax

What am I doing wrong?

Diego
  • 1
  • 1
  • 1
    That's a Python error. You're entering the command into the Python interpreter, not your operating system's command line. Even so, you wouldn't enter the `C:>`; that's for illustrative purposes. – AKX Oct 15 '22 at 11:58

0 Answers0