Skip to content
Advertisement

Python 3.10 [Errono 2] No such file or directory – Python 3.10 not being recognised in terminal [closed]

I installed python3.10 on my mac. I can see it under applications but when I type python 3– version it returns the following error.

JavaScript

Python2 — version returns with the default python 2.7.18 which is already installed with Mac OS.

Steps I’ve taken:

JavaScript

This was to map python to python 3 it worked but I still received the following error..

JavaScript

Please help!

Advertisement

Answer

The problem is with the command you’ve entered. This makes the Python interpreter think you’re trying to run a script called v, which obviously doesn’t exist.

JavaScript

For checking the version, you should either:

  1. Use one hyphen and a capital letter: python -V
  2. Use two hyphens and the full word: python --version.

There should be no space after the hyphen.

Advertisement