Home > other >  Can't get interpreter's version in cmd
Can't get interpreter's version in cmd

Time:02-19

I've installed Python 3.10.2 on Windows 10, x64. It's added to path and I don't have any other version of Python on my computer. But when I'm trying to check python version using python -v in cmd, it only outputs "Python".

screenshot

Moreover, such commands as python setup.py build won't work.
What's wrong with it?

CodePudding user response:

Check python version using:

python --version 

CodePudding user response:

Use capital -V option :) Lowercase -v is another option. That's why there are also long options, like here --version

As for your other problem, it really depends on setup.py, which we do not know about. This is the python script you want to run, so there are chances the problem is with this script or its context. Check the respective project or install/build FAQ may be.

  • Related