different python versions from the same command prompt in windows

Solution 1:

This is because there are two versions of python on your computer. When you want to reference to a particular version of python just do: py - version


For example, if you want to reference to python 3.10 in cmd, do: py - 310 And when you want to reference to 3.9 do: py - 39


Make sure you have the correct spacing^