VSCode: 'py' command works but 'python' doesn't in the terminal

When I'm trying to run my file through VSCode terminal, it works fine if i use py but shows the prompt of "how do you want to open this file?" when i use python command instead of py. this issue is specific to vs code terminal. both py and python works fine on my windows terminal.

here's what i tried-

  1. selected interpreter path
  2. multiple reinstallations of python and vscode
  3. checked system env path-> all set well
  4. checked aliases
  5. doskey python=py

what am i missing here?


  • I selected CMD as my default terminal profile, and it worked miraculously. Although I have been using Python for three years, I never faced such an issue before.