1

I keep getting the error "zsh: command not found: python" while attempting to determine what version of Python my device is running.

python -v which returned - zsh: command not found: python python --version returned again, zsh: command not found: python

Please advise

eftshift0
  • 26,375
  • 3
  • 36
  • 60
Marian Jones
  • 21
  • 1
  • 1
  • 1

1 Answers1

9

Depending on how you installed Python it will probably be called python3, not plain python. So python3 --version should work. You can then set up an alias for python to point to the correct package. This article explains a bunch of different approaches.

bon_homie
  • 91
  • 3