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
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.
Checking for the python version would prompt same error on Linux and Mac normally because of how you installed it
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With