Search code examples
pythonpython-3.xpath-variables

Python version conflict


I have installed python version Python 3.7.8 and added it to path variables. However when i type python in the cmd i get python 2.6

enter image description here

If you see the below image, python 3.7 is added to the path variable! enter image description here

How can i open python 3.7 from cmd instead of 2.6?


Solution

  • for python 2.x use py -2.x or -2 for latest 2.x for python 3.x use py -3.x or -3 for latest 3.x